Small code cleanup

pull/1/head
Tatsuhiro Tsujikawa 2011-06-01 01:43:31 +09:00
parent 2799c9f0cc
commit 867cab6df1
1 changed files with 2 additions and 2 deletions

View File

@ -93,10 +93,10 @@ std::string percentEncode(const std::string& src)
++i) {
// Non-Printable ASCII and non-ASCII chars + some ASCII chars.
unsigned char c = *i;
if(in(c, 0x00u, 0x1fu) || c >= 0x7fu ||
if(in(c, 0x00u, 0x20u) || c >= 0x7fu ||
// Chromium escapes following characters. Firefox4 escapes
// more.
c == ' ' || c == '"' || c == '<' || c == '>') {
c == '"' || c == '<' || c == '>') {
result += fmt("%%%02X", c);
} else {
result += c;