CefURIDecode does not handle UU_REPLACE_PLUS_WITH_SPACE correctly

Issue #2904 resolved
Andy Tzeng created an issue

What steps will reproduce the problem?

Invoke the API with UU_REPLASCE_PLUS_WITH_SPACE option

CefURIDecode("A+test+string", static_cast<cef_uri_unescape_rule_t>(
          UU_SPACES | UU_REPLACE_PLUS_WITH_SPACE))

What is the expected output? What do you see instead?

It should convert the encoded string to “A test string”, but current build output is “A+test+string”

What version of the product are you using? On what operating system?

80.0.8+gf96cd1d+chromium-80.0.3987.132

The enum of UnescapeRule is changed from chromium/src/net/base/escape.h. the enum in cef_types.h hasn’t aligned to the change.

Comments (6)

  1. Log in to comment