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

Dynamic content structure menu hangs when content name contains quote

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.1
    • 4.0.1rc2
    • None
    • Operating System: Ubuntu GNU/Linux 8.04
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2
      Database and version: 5.0.51a-3ubuntu5.1
      Browser (and version): Firefox 3.0.1

    Description

      This problem is related to Yahoo JSON parser.

      YAHOO.lang.JSON.parse(o.responseText) in design/admin/templates/contentstructuremenu/content_structure_menu_dynamic.tpl throws an exception when the name of a node contains a quote (for example: "Page d'accueil")

      exception message : SyntaxError: parseJSON message=parseJSON

      And here is the JSON:

      {"node_id":2,
      "children_count":1,
      "children":[{"node_id":158,
      "object_id":156,
      "class_id":1,
      "has_children":0,
      "name":"Page d\047accueil",
      "url":"/index.php/bj_contrib/Page-d-accueil",
      "modified_subnode":1215160342,
      "languages":["fre-FR",
      "jpn-JP",
      "rus-RU"],
      "is_hidden":0,
      "is_invisible":0},
      ]}
      

      It seems that the json parser doesn't like \047

      Attachments

        Activity

          People

            pborgerm pborgerm
            clochix clochix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: