]> git.openstreetmap.org Git - rails.git/commitdiff
More improvements to mediawiki fragment escaping
authorTom Hughes <tom@compton.nu>
Fri, 15 May 2015 14:34:12 +0000 (15:34 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 15 May 2015 14:34:12 +0000 (15:34 +0100)
It turns out that the PHP urlencode encodes more characters than
the ruby URI.encode does by default, so specify our own characters
to encode based on http://php.net/manual/en/function.urlencode.php
with the extra exclusion of colon, which the mediawiki code reverses
after the encoding is done.

Fixes #967


No differences found