Skip to content

EZP-29246: Avoid double decoding of URL#1360

Open
pkamps wants to merge 4 commits intoezsystems:masterfrom
pkamps:patch-1
Open

EZP-29246: Avoid double decoding of URL#1360
pkamps wants to merge 4 commits intoezsystems:masterfrom
pkamps:patch-1

Conversation

@pkamps
Copy link
Contributor

@pkamps pkamps commented May 19, 2018

eZSYS::requestURI is already decoding the URL. The eZURI class does it a 2nd time.

Example of the problem. Given URL:
http://sitedomain/(foo)/bar%2Bbar

Double decoded version is is /(foo)/bar bar (that's a space in between)
But the correct value is /(foo)/bar+bar

You can test this by adding following into your pagelayout.tpl:
{$view_parameters|dump()}

Use following URL and look at the dump output:
http://sitedomain/(foo)/bar%2Bbar

The correct value is " /(foo)/bar+bar" - the pull request should produce the correct output.

pkamps added 3 commits May 19, 2018 22:34
eZSYS::requestURI is already decoding the URL. The eZURI class does it a 2nd time.

Example of the problem. Given URL:
http://<sitedomain>/(foo)/bar%2Bbar

Double decoded version is is /(foo)/bar bar (that's a space in between)
But the correct value is /(foo)/bar+bar

You can test this by adding following into your pagelayout.tpl:
{$view_parameters|dump()}

Use following URL and look at the dump output:
http://<sitedomain>/(foo)/bar%2Bbar

The correct value is " /(foo)/bar+bar" - the pull request should produce the correct output.
@pkamps
Copy link
Contributor Author

pkamps commented May 25, 2018

@pkamps pkamps changed the title Avoid double decoding of URL EZP-29246: Avoid double decoding of URL May 25, 2018
@pbek
Copy link
Contributor

pbek commented Sep 21, 2018

@pkamps, FYI: I tested your pull request and it didn't solve the issue of showing customer information with urls like https://your-server/admin/shop/customerorderview/10/test%2Btest@test.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants