olivernn/davis.js

Davis does not correctly escape characters when submitting forms and thus sets the wrong URL

Closed this issue · 3 comments

  1. Assume there's an <input type="search" name="query"> inside a form that submits a GET request.
  2. Set the value of the field to foo bar &zoo=goo.
  3. Submit the form.
  4. See the query part of the URL change to ?query=foo%20bar%20&zoo=goo instead of to
    ?query=foo+bar+%26zoo%3Dgoo (%20 instead of + would be fine as well, but the & and = characters need to be escaped).

Thanks for reporting this, I've pushed a new version that fixes this 0.9.8

Thanks!
On Feb 28, 2013 4:26 AM, "Oliver Nightingale" notifications@github.com
wrote:

Thanks for reporting this, I've pushed a new version that fixes this 0.9.8https://github.com/olivernn/davis.js/tree/v0.9.8


Reply to this email directly or view it on GitHubhttps://github.com//issues/70#issuecomment-14230860
.

No worries, I actually screwed up the 0.9.8 release, so don't use that - 0.9.9 is the latest