summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-01-30 10:40:08 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-15 18:47:55 +0200
commit005bbf0da4813c7915a9a9ce9b4697a0379f3a16 (patch)
treebdebbac2b248d3a1704f9dd6688b0ea46da9fafe
parent851bb3ce825a250b257c174eae334e239c431eb2 (diff)
downloadmpv-005bbf0da4813c7915a9a9ce9b4697a0379f3a16.tar.bz2
mpv-005bbf0da4813c7915a9a9ce9b4697a0379f3a16.tar.xz
stream/url.c: escape characters >= 127 in URLs
Escape character values >= 127 in URLs as required by the RFC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32833 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/url.c b/stream/url.c
index c505ab99d8..2c241ee7ee 100644
--- a/stream/url.c
+++ b/stream/url.c
@@ -326,8 +326,7 @@ url_escape_string_part(char *outbuf, const char *inbuf) {
if( (c >= 'A' && c <= 'Z') ||
(c >= 'a' && c <= 'z') ||
- (c >= '0' && c <= '9') ||
- (c >= 0x7f)) {
+ (c >= '0' && c <= '9')) {
*outbuf++ = c;
} else if ( c=='%' && ((c1 >= '0' && c1 <= '9') || (c1 >= 'A' && c1 <= 'F')) &&
((c2 >= '0' && c2 <= '9') || (c2 >= 'A' && c2 <= 'F'))) {