Slightly expand the set of characters which are escaped in filenames.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 23 May 2007 18:12:29 +0000 (11:12 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Wed, 23 May 2007 18:12:29 +0000 (11:12 -0700)
format.cc

index 08c2f74..19cf28f 100644 (file)
--- a/format.cc
+++ b/format.cc
@@ -27,7 +27,7 @@ string uri_encode(const string &in)
     for (size_t i = 0; i < in.length(); i++) {
         unsigned char c = in[i];
 
-        if (c > '%' && c <= 0x7f) {
+        if (c >= '+' && c < 0x7f) {
             out += c;
         } else {
             char buf[4];