From 3702f2531d1bedb56ec4e0ecd80ea007e447c128 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 23 May 2007 11:12:29 -0700 Subject: [PATCH] Slightly expand the set of characters which are escaped in filenames. --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.20.1