Closed
Bug 298508
Opened 19 years ago
Closed 19 years ago
Numeric comparison performed on strings in editwhines.cgi
Categories
(Bugzilla :: Whining, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: karl, Assigned: karl)
References
Details
Attachments
(1 file)
646 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Updated•19 years ago
|
Blocks: bz-warnings
Version: unspecified → 2.19.3
Assignee | ||
Updated•19 years ago
|
No longer blocks: bz-warnings
Assignee | ||
Comment 1•19 years ago
|
||
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)
Assignee | ||
Comment 2•19 years ago
|
||
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)
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.20
Comment 3•19 years ago
|
||
Comment on attachment 187064 [details] [diff] [review]
Change numeric conversion to string conversion
r=LpSolit
Attachment #187064 -
Flags: review?(LpSolit) → review+
Updated•19 years ago
|
Assignee: erik → karl
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
Comment 4•19 years ago
|
||
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
Comment 5•19 years ago
|
||
*** 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.
Description
•