Closed
Bug 607042
Opened 15 years ago
Closed 15 years ago
Warning: preg_match() [function.preg-match]: Unknown modifier 'c' in /data/www
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephend, Unassigned)
References
()
Details
(Whiteboard: [redesign])
Attachments
(1 file, 1 obsolete file)
839 bytes,
patch
|
abuchanan
:
review+
|
Details | Diff | Splinter Review |
http://nova.stage.mozilla.com/en-US/firefox/all.html?lang-search=%3C%2Fscript%3E%3Cscript%3Ealert%28%22XSS!%22%29%3B%3C%2Fscript%3E&x=22&y=14 yields a bunch of this warning:
Warning: preg_match() [function.preg-match]: Unknown modifier 'c' in /data/www/nova.stage.mozilla.com/includes/product-details/firefoxDetails.class.php on line 485
Comment 1•15 years ago
|
||
Looks like there was just a typo in the original code. It was supposed to be quoted.
Attachment #485827 -
Flags: review?(abuchanan)
Comment 2•15 years ago
|
||
Comment on attachment 485827 [details] [diff] [review]
patch to quote dynamic regular expression
Code change looks fine, but I don't think this fixes the problem. When I tested locally, I still get the error.
Attachment #485827 -
Flags: review?(abuchanan) → review-
Comment 3•15 years ago
|
||
The delimiter needs to be specified for preg_quote(). Add a second parameter to preg_quote() to fix:
$_keywords = preg_quote($keywords, '/');
Comment 4•15 years ago
|
||
Can I have a patch please?
Comment 5•15 years ago
|
||
second version of patch with one line change, see bug history for details
Attachment #485827 -
Attachment is obsolete: true
Attachment #487342 -
Flags: review?(abuchanan)
Comment 7•15 years ago
|
||
Comment on attachment 487342 [details] [diff] [review]
second version of patch with one line change
Thank you.
Attachment #487342 -
Flags: review?(abuchanan) → review+
Comment 8•15 years ago
|
||
This will be pushed to production with the next update of p-d (usually a product release). I think it can wait until then.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 9•15 years ago
|
||
qa-verified-trunk
Reporter | ||
Comment 10•15 years ago
|
||
Verified FIXED -- pushed to prod, don't see any errors (thought I didn't before, I still don't, obviously).
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•13 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Assignee | ||
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•