Closed Bug 290703 Opened 20 years ago Closed 20 years ago

Mozilla Update Search butchers special characters

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gidsgoldberg, Assigned: ted)

References

()

Details

Attachments

(1 file)

Mozilla Update Search makes a mess of listings containing special characters
such as quote marks and ampersands.

In the case of ampersands instead of & the server sends &.
In the case of quotation marks instead of " the server sends "
Trivial to fix.  Just remove htmlspecialchars from:
http://lxr.mozilla.org/mozilla/source/webtools/update/quicksearch.php#179
Also maybe
http://lxr.mozilla.org/mozilla/source/webtools/update/quicksearch.php#175 if
extension names are already encoded in the DB.
Assignee: Bugzilla-alanjstrBugs → ted.mielczarek
inc_global.php escapes all GET/POST vars by default.  Everything in the DB is
escaped already.
Attachment #181096 - Flags: first-review?(mike.morgan)
Comment on attachment 181096 [details] [diff] [review]
Drop htmlspecialchars from name/description

An assumption either way is just that; but I'd rather see a & than &
(&) popping up in prod.  I tested this on staging and without
htmlspecialchars I did not get any validation errors.
Attachment #181096 - Flags: first-review?(mike.morgan) → first-review+
Fix will be pushed in next update.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: