OSDN Git Service

fix percent-encode.
authorvisor <visor@users.sourceforge.jp>
Thu, 5 Apr 2012 13:16:50 +0000 (22:16 +0900)
committervisor <visor@users.sourceforge.jp>
Thu, 5 Apr 2012 13:16:50 +0000 (22:16 +0900)
lib/util_string.cc

index 6e60f26..58f9061 100644 (file)
@@ -320,7 +320,7 @@ ustring  urlencode (const ustring& url) {
 #endif
 
 ustring  percentEncode (uiterator b, uiterator e) {
-    static uregex  re ("(\\x00)|([^A-Za-z0-9_.~\x80-\xff-])");
+    static uregex  re ("(\\x00)|([^A-Za-z0-9_.~-])");
 
     return percentEncode (b, e, re);
 }