diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-31 17:19:10 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-31 17:19:10 +0200 |
commit | 436d7eab92bb8f9cc6498acfbf2055e717be6fd0 (patch) | |
tree | b20637bf103d7defe34013f4e2b475aeaa7fe53b /apt-pkg/contrib/strutl.h | |
parent | e84adb76c87f419ed5bad8f7d08a4132de2bc406 (diff) |
Userinfo is urlencoded in URIs (RFC 3986)
Thanks to Jean-Baptiste Lallement for spotting and fixing it!
* apt-pkg/contrib/strutl.cc:
- always escape '%' (LP: #130289) (Closes: #500560)
- unescape '%' sequence only if followed by 2 hex digit
- username/password are urlencoded in proxy string (RFC 3986)
Diffstat (limited to 'apt-pkg/contrib/strutl.h')
-rw-r--r-- | apt-pkg/contrib/strutl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/strutl.h b/apt-pkg/contrib/strutl.h index d8070d3f5..e509145f9 100644 --- a/apt-pkg/contrib/strutl.h +++ b/apt-pkg/contrib/strutl.h @@ -38,6 +38,7 @@ bool ParseQuoteWord(const char *&String,string &Res); bool ParseCWord(const char *&String,string &Res); string QuoteString(const string &Str,const char *Bad); string DeQuoteString(const string &Str); +string DeQuoteString(string::const_iterator const &begin, string::const_iterator const &end); string SizeToStr(double Bytes); string TimeToStr(unsigned long Sec); string Base64Encode(const string &Str); |