Giter Site home page Giter Site logo

Comments (4)

sporkmonger avatar sporkmonger commented on July 21, 2024

The #query_values is meant to decode application/x-www-form-urlencoded query strings. It does some other stuff as well, and it could probably be argued that that is a mistake, but regardless, if you look at application/x-www-form-urlencoded, you'll see that the + character is supposed to be treated as a space in that context. It's one of the more misguided bits of behavior that have found their way into a spec, but it's in the spec and we have to live with it. The work-around is to %-encode the + character. #query_values will not replace the + character with a space if it was %-encoded first.

I've implemented based on the definition in HTML 4.01, however, I intend to rewrite in the next major version against the definition in HTML5 as it's far less ambiguous and it's what will be implemented in most major browsers going forward:
http://www.w3.org/TR/html5/association-of-controls-and-forms.html#application-x-www-form-urlencoded-encoding-algorithm

from addressable.

smparkes avatar smparkes commented on July 21, 2024

Actually, the part I'm unclear on is that the + that's being decoded into a space is one that was already % escaped.

from addressable.

sporkmonger avatar sporkmonger commented on July 21, 2024

Oooooh, my bad. Yes, this was recently resolved — could you check out master and verify that it's fixed for you there?

from addressable.

smparkes avatar smparkes commented on July 21, 2024

Yup. Looks good. Thanks!

from addressable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.