Closed Bug 678937 Opened 13 years ago Closed 13 years ago

comment reply link doesn't work if name has a single quote

Categories

(bugzilla.mozilla.org :: User Interface, defect)

Production
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 678731

People

(Reporter: al_9x, Unassigned)

References

()

Details

Error: missing ) after argument list
Source file: https://bugzilla.mozilla.org/show_bug.cgi?id=675840
Line: 1, Column: 37
Source code:
replyToComment(4, 5629307, 'Robert O'Callahan (:roc) (Mozilla Corporation)'); return false;

the link is document.written and single quotes are not escaped

document.write('[<a href="#add_comment" onclick="replyToComment(' +
id + ', ' + real_id + ', \'' + name +'\'); return false;">reply<' + '/a>]');

<a onclick="replyToComment(4, 5629307, 'Robert O'Callahan (:roc) (Mozilla Corporation)'); return false;" href="#add_comment">reply</a>
Assignee: create-and-change → nobody
Component: Creating/Changing Bugs → User Interface
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa → ui
Version: unspecified → Current
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.