Skip to content

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

@ghevge

Description

@ghevge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions