diff options
author | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-29 20:57:35 +0000 |
---|---|---|
committer | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-29 20:57:35 +0000 |
commit | 6be5dd40860ccdb891d18b701716e756ba56e917 (patch) | |
tree | a190daf03246d0014fb8d8843bcbefb3b3215c27 /net/base/escape.h | |
parent | 27aca5ae73f4d85c84fa8fdbc54e9e4e0d6c82a0 (diff) | |
download | chromium_src-6be5dd40860ccdb891d18b701716e756ba56e917.zip chromium_src-6be5dd40860ccdb891d18b701716e756ba56e917.tar.gz chromium_src-6be5dd40860ccdb891d18b701716e756ba56e917.tar.bz2 |
Reverting revision 70, 66 and 65 to fix crashes.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/escape.h')
-rw-r--r-- | net/base/escape.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/net/base/escape.h b/net/base/escape.h index 4b86a64..220eebc 100644 --- a/net/base/escape.h +++ b/net/base/escape.h @@ -77,20 +77,17 @@ class UnescapeRule { // by other applications. SPACES = 1, - // Unescapes various characters that will change the meaning of URLs, - // including '%', '+', '&', '/', '#'. If we unescaped these charaters, the - // resulting URL won't be the same as the source one. This flag is used when - // generating final output like filenames for URLs where we won't be - // interpreting as a URL and want to do as much unescaping as possible. - URL_SPECIAL_CHARS = 2, - - // Unescapes control characters such as %01. This INCLUDES NULLs!. This is - // used for rare cases such as data: URL decoding where the result is binary - // data. You should not use this for normal URLs! - CONTROL_CHARS = 4, + // Unescapes "%25" to "%". This must not be used when the resulting string + // will need to be interpreted as a URL again, since we won't know what + // should be escaped and what shouldn't. For example, "%2520" would be + // converted to "%20" which would have different meaning than the origina. + // This flag is used when generating final output like filenames for URLs + // where we won't be interpreting as a URL and want to do as much unescaping + // as possible. + PERCENTS = 2, // URL queries use "+" for space. This flag controls that replacement. - REPLACE_PLUS_WITH_SPACE = 8, + REPLACE_PLUS_WITH_SPACE = 4, }; }; |