Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29246

Avoid double decoding of URL

    XMLWordPrintable

Details

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Legacy stack
    • None

    Description

      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.

      Pull request: https://github.com/ezsystems/ezpublish-legacy/pull/1360

      Attachments

        Activity

          People

            Unassigned Unassigned
            919b0c62-17af-433a-bab4-b6a5c8c464c0@accounts.ibexa.co Philipp Kamps
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: