[tor-bugs] #6864 [Onionoo]: search shouldn't use space separated values
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Tue Sep 18 08:42:09 UTC 2012
#6864: search shouldn't use space separated values
---------------------+------------------------------------------------------
Reporter: gsathya | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Onionoo | Version:
Keywords: | Parent:
Points: | Actualpoints:
---------------------+------------------------------------------------------
Comment(by gsathya):
{{{
>>> import urllib
>>> urllib.urlencode({'search':'foo bar'})
'search=foo+bar'
}}}
Spaces get encoded as a '+', Atlas and Onionoo need to be fixed to use
that. Spaces aren't a legal part of the querystring(not safe either). I
figured it might be better to stick to the RESTful API conventions which
is using "multiple parameter values", but if it's going to be a pain to
change, then we should at least use url encoded spaces.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6864#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list