Message11514

Author carbonnq
Recipients
Date 2010-01-26.22:49:01
Content
If one has this config file

[http_proxy]
host=proxy.here.com
user=john
passwd=pass/word

the '/' is not correctly handled since the password string is retrieved as
is from the config file and put in a 'url' describing the proxy settings,
then given to urllib.
In order to have a working config file we must write

[http_proxy]
host=proxy.here.com
user=john
passwd=pass%2Fword

which is far from instinctive (and not documented).

A solution is to replace every '/' by '%2F' in the password string before
giving it to the urllib.
History
Date User Action Args
2010-01-26 22:49:01carbonnqsetmessageid: <1264546141.14.0.179426888459.issue1998@mercurial.selenic.com>
2010-01-26 22:49:01carbonnqlinkissue1998 messages
2010-01-26 22:49:01carbonnqcreate