Senthil orsent...@gmail.com added the comment:
Fixed and
Committed revision 74608 - trunk
Committed revision 74609 - py3k
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2637
Senthil orsent...@gmail.com added the comment:
I see adding this information to the docs, might clarify a bit.
By default, this function is intended for quoting the path section of
the URL.
This is already present in the function docstring.
If there is no objection, I shall commit the
Nir Soffer nir...@gmail.com added the comment:
Senthil said:
The way to handle this issue would be add these characters
'%/:=?~#+!$,;'@()*[]' to always_safe list.
This is wrong - for example, '=?' are NOT safe when quoting parameters
for query string. This will break exiting code that assume
Nir Soffer nir...@gmail.com added the comment:
Here is one example of code that would break if the safe parameter is
changed in a careless way mentioned here (look for url_encode):
http://dev.pocoo.org/projects/werkzeug/browser/werkzeug/urls.py#L112
I'm sure we can find similar code in every
Senthil orsent...@gmail.com added the comment:
On Sun, Aug 09, 2009 at 03:40:47PM +, Nir Soffer wrote:
for query string. This will break exiting code that assume the default
safe parameters.
Other characters may be unsafe in other parts of the url - I did not
I agree with your comments
Nir Soffer nir...@gmail.com added the comment:
You can control what is safe in your particular context using the safe
keyword argument.
How do you want to support unicode? you must decide which character
encoding you like, which depends on the server side decoding the url.
Just document the
Senthil orsent...@gmail.com added the comment:
The way to handle this issue would be add these characters
'%/:=?~#+!$,;'@()*[]' to always_safe list.
There has been a similar issue in the past Issue918368, tough in a
different context.
And if you see, urllib.urlopen function always passes
Rodrigo Steinmuller Wanderley rodrigoswander...@gmail.com added the comment:
Unreserved characters can be escaped without changing the semantics
of the URI, but this should not be done unless the URI is being used
in a context that does not allow the unescaped character to appear.
How can we
Daniel Diniz aja...@gmail.com added the comment:
@Tom: issue 1712522 tracks Unicode support.
--
assignee: - georg.brandl
components: +Documentation
dependencies: +urllib.quote throws exception on Unicode URL
keywords: +easy
nosy: +ajaksu2, ezio.melotti, georg.brandl, haypo, orsenthil
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2637
___
___
Tom Pinckney [EMAIL PROTECTED] added the comment:
It also looks like urllib.quote (and quote_plus) do not properly handle
unicode strings. urllib.urlencode() properly converts unicode strings to
utf-8 encoded ascii strings before then calling urllib.quote() on them.
--
nosy:
New submission from Tim Lesher [EMAIL PROTECTED]:
The urllib.quote docstring implies that it quotes only characters in RFC
2396's reserved set.
However, urllib.quote currently escapes all characters except those in
an always_safe list, which consists of alphanumerics and three
punctuation
12 matches
Mail list logo