Fix UU_REPLACE_PLUS_WITH_SPACE value to match Chromium (fixes issue #2904)

This commit is contained in:
Andy Tzeng
2020-04-02 21:16:52 +00:00
committed by Marshall Greenblatt
parent a5de549456
commit 261a8899fc
2 changed files with 19 additions and 12 deletions

View File

@@ -2303,21 +2303,10 @@ typedef enum {
///
UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 1 << 3,
///
// Unescapes characters that can be used in spoofing attempts (such as LOCK)
// and control characters (such as BiDi control characters and %01). This
// INCLUDES NULLs. This is used for rare cases such as data: URL decoding
// where the result is binary data.
//
// DO NOT use UU_SPOOFING_AND_CONTROL_CHARS if the URL is going to be
// displayed in the UI for security reasons.
///
UU_SPOOFING_AND_CONTROL_CHARS = 1 << 4,
///
// URL queries use "+" for space. This flag controls that replacement.
///
UU_REPLACE_PLUS_WITH_SPACE = 1 << 5,
UU_REPLACE_PLUS_WITH_SPACE = 1 << 4,
} cef_uri_unescape_rule_t;
///