From: Michael Vrable Date: Wed, 23 May 2007 18:12:29 +0000 (-0700) Subject: Slightly expand the set of characters which are escaped in filenames. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=3702f2531d1bedb56ec4e0ecd80ea007e447c128;p=cumulus.git Slightly expand the set of characters which are escaped in filenames. --- diff --git a/format.cc b/format.cc index 08c2f74..19cf28f 100644 --- 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];