Page MenuHomePhabricator

Improper handling of UTF-8 in MapEditor code
Closed, ResolvedPublic

Description

sprintf() used in the code for Special:MapEditor (now moved to Maps/includes/editor/EditorHtml.php) doesn't handle UTF-8 properly.

Seems to me that this problem causes "Uncaught SyntaxError: Unexpected token ILLEGAL" to appear in the console when using the googlemapsEditor forminput in http://openurbandev.com/index.php?title=Special:FormEdit/Address/Home
and hence on saving the page weird things happen like redirection to Homepage

Also the coding styles are not followed here.

see http://www.php.net/manual/en/function.sprintf.php#86304


Version: master
Severity: normal

Details

Reference
bz42620