| Index: platform/KURLGoogle.cpp
|
| ===================================================================
|
| --- platform/KURLGoogle.cpp (revision 47779)
|
| +++ platform/KURLGoogle.cpp (working copy)
|
| @@ -757,15 +757,9 @@
|
| for (int i = 0; i < inputLength; i++) {
|
| if (input[i] == '%') {
|
| unsigned char ch;
|
| - if (url_canon::DecodeEscaped(input, &i, inputLength, &ch)) {
|
| - if (!ch) {
|
| - // Never unescape NULLs.
|
| - unescaped.push_back('%');
|
| - unescaped.push_back('0');
|
| - unescaped.push_back('0');
|
| - } else
|
| - unescaped.push_back(ch);
|
| - } else {
|
| + if (url_canon::DecodeEscaped(input, &i, inputLength, &ch))
|
| + unescaped.push_back(ch);
|
| + else {
|
| // Invalid escape sequence, copy the percent literal.
|
| unescaped.push_back('%');
|
| }
|
|
|