Closed Bug 298508 Opened 19 years ago Closed 19 years ago

Numeric comparison performed on strings in editwhines.cgi

Categories

(Bugzilla :: Whining, defect)

2.19.3
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: karl, Assigned: karl)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) in editwhines.cgi (the tip version), $o_mailto and $mailto are defined on lines 228-229: > my $o_mailto = $cgi->param("orig_mailto_$sid"); > my $mailto = $cgi->param("mailto_$sid"); Later on, they are compared using a numeric comparison, on line 272-275: > if ( ($o_day ne $day) || > ($o_time ne $time) || > ($o_mailto != $mailto) || > ($o_mailto_type != $mailto_type) ){ This produces the following error 2 times in the Apache error_log: editwhines.cgi: Argument "******" isn't numeric in numeric ne (!=) at /Library/WebServer/Documents/bugzilla-new/editwhines.cgi line 272. Reproducible: Always Steps to Reproduce: $o_mailto and $mailto may also be set in lines 235-236, but would still be set to string values.
Blocks: bz-warnings
Version: unspecified → 2.19.3
No longer blocks: bz-warnings
Modifies numeric comparison between $mailto and $o_mailto to use a string comparison on line 274. Assumes this bug is valid & that a string conversion is needed.
Attachment #187064 - Flags: review?(erik)
Comment on attachment 187064 [details] [diff] [review] Change numeric conversion to string conversion It's been 7+ days since the request was raised. Requesting review from LpSolit...
Attachment #187064 - Flags: review?(erik) → review?(LpSolit)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.20
Comment on attachment 187064 [details] [diff] [review] Change numeric conversion to string conversion r=LpSolit
Attachment #187064 - Flags: review?(LpSolit) → review+
Assignee: erik → karl
Flags: approval?
Flags: approval? → approval+
I merged this patch manually with the one from bug 298510, first because they conflict, and also because this one is bitrotten due to the other one.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 300018 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: