Opened 11 years ago

Closed 11 years ago

#2149 closed defect (fixed)

User Account Page Javascript Bug

Reported by: pinkduck@… Owned by: Tom Hughes
Priority: minor Milestone:
Component: website Version:
Keywords: user account javascript error Cc:


On my user account page a line of JavaScript? causes the presentation of nearby mappers' locations to fail in Firefox 3.5:

Error: missing } after property list Source File: Line: 106, Column: 36 Source Code: nearest.push( { 'display_name' : 'P'vel', 'home_lat' : 52.6284207603974, 'home_lon' : 1.2753455876755 } );

This can be fixed by backslash-escaping apostrophes in user names when building the Javascript code. This would also help mitigate a security risk.

Change History (1)

comment:1 Changed 11 years ago by tomhughes

Resolution: fixed
Status: newclosed

(In [16930]) Escape usernames. Closes #2149.

Note: See TracTickets for help on using tickets.