Details
-
Bug
-
Resolution: Fixed
-
Medium
-
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