Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

User Account Page Javascript Bug #2149

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

User Account Page Javascript Bug #2149

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: pinkduck[at]dsl.pipex.com
[Submitted to the original trac issue database at 12.09pm, Saturday, 8th August 2009]

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: http://www.openstreetmap.org/user/Pink%20Duck
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.

@openstreetmap-trac
Copy link
Author

Author: tomhughes
[Added to the original trac issue at 10.45pm, Saturday, 8th August 2009]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant