cordova-plugin-webview-proxy icon indicating copy to clipboard operation
cordova-plugin-webview-proxy copied to clipboard

Plus sign "+" is not handled properly when passed in the URLs in iOS

Open ghevge opened this issue 5 months ago • 1 comments

Describe the bug Plus sign "+" is not handled properly when passed in the URLs. I noticed that when I pass the plus sign in a URL, if it is not escaped, if it is escaped a single time or if it is escaped twice, the plugin is passing it to the upstream as unescaped: "+"

This is causing problem on upstream, where it is processed as an empty space.

If I escape the plus sign 3 times, the plugin will pass it over as double escaped: "%252B" which again is not OK as I will read "%2B" on my server side.

Any idea what is going on here?

Thanks

To Reproduce Pass "%2B", "%252B" and "%25252B" as params in a URL through cordova-plugin-webview-proxy in iOS.

Expected behavior the proxy should allow passing the "%2B" as a parameter to upstream servers.

Logs not available

ghevge avatar Sep 01 '24 13:09 ghevge