chadwhitacre / mongs

A nice web-based MongoDB data browser
131 stars 17 forks source link

query with + gets clobbered by unquote_plus #10

Open chadwhitacre opened 11 years ago

chadwhitacre commented 11 years ago

I reproduced this by saving a document {"a": "foo+bar"} and then querying for it in Mongs. 404 as reported by @sureshsaggar.

chadwhitacre commented 11 years ago

Why did I think that we needed unquote_plus? The Python docs seem to indicate that unquote is for URL paths (including querystrings?) and unquote_plus is for form post bodies (but not querystrings?). This old comment from Guido seems to corroborate that.

Let's drop to unquote and see if anyone else complains. :)