]> git.openstreetmap.org Git - rails.git/commit
URI encode the X-Page-Title header
authorTom Hughes <tom@compton.nu>
Tue, 17 Mar 2015 18:49:39 +0000 (18:49 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 17 Mar 2015 18:49:39 +0000 (18:49 +0000)
commite2aef40437767e779f97a7447de69b4540839ff5
tree6798c6298e2867bb60a1e109fb3ecdb3f969eddf
parent05caad1a5dfbdf892f4b46b0916a4f6b1de4d2e3
URI encode the X-Page-Title header

Browsers's are inconsistent in how they interpret the encoding
of a response header in an XHR request, so URI encode it so that
it simple ASCII we can then decode it again in the browser.
app/assets/javascripts/index.js
app/helpers/title_helper.rb
test/helpers/title_helper_test.rb