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

eZOE link popup doesn't urlencode search string

    XMLWordPrintable

    Details

      Description

      When inserting a link for a content in eZ OE, and using the search, the search text is not urlencoded, so if your search text contains "&", it is considered as a URL GET separator.

      Steps to reproduce :
      • Create a content (article) named "new&article".
      • In a separate content, select a text in eZOE, and click on the "insert link" button.
      • in the popup window, click on the search (loupe) to open the search form.
      • Search for a text which contains "&" character: "new&article"
      Expected results:
      • solr should return results for "new&article"
      Actual results:
      • The SearchStr param has been split, so search results are returned only for "new".
      Further notes:

      Opening the browser's network debugger and looking at the ajax call, we can see the problem query with split parameters:
      ...EncodingFetchChildrenCount=1&SearchStr=new&articlee&ezjscServer_function_arguments...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: