]> git.openstreetmap.org Git - rails.git/commit
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)
commitca213b873f35b6eae8ff13c4d88356f1225eea0f
tree8ef48588e307c938b86ce5eb2cb95c793fad8209
parent8c37f47244b7a7501593882d81d79354acdab7f9
More improvements to mediawiki fragment escaping

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
app/helpers/browse_helper.rb
test/helpers/browse_helper_test.rb