Reviewed by Darin.
[WebKit-https.git] / WebCore / platform / KURL.cpp
index 3f2f3e9a3e5173a32ff8271b25cd8dcd9ecfff8a..6e16686f39673d26e124628590957079ad10c880 100644 (file)
@@ -782,7 +782,7 @@ static void appendEscapingBadChars(char*& buffer, const char *strStart, size_t l
         if (isBadChar(c)) {
             if (c == '%' || c == '?') {
                 *p++ = c;
-            } else {
+            } else if (c != 0x09 && c != 0x0a && c != 0x0d) {
                 *p++ = '%';
                 *p++ = hexDigits[c >> 4];
                 *p++ = hexDigits[c & 0xF];