Forums / General / Problem with a quote in class name

Problem with a quote in class name

Author Message

Pierre Déchanoz

Thursday 21 October 2010 2:48:36 am

Hello,
When the name of a class as a quote (ex : page d'accueil), i have not access to the content structure pop-up menu in the admin2 interface.

There is an error in the javascript :

{ classID: '22', name: 'Page d''accueil' }.

To make it work, the result must be :

{ classID: '22', name: 'Page d\'accueil' }

André R.

Thursday 21 October 2010 4:42:59 am

Hi, we've recently became aware of similar encoding issues so master is currently using json_encode instead which should make sure json strings actually encodes it's content correctly.

Currently you can get the patches from git.
You'll need:
http://github.com/ezsystems/ezpublish/commit/f9169f2ca3f4863b014f61820d6af2b31e3069c6

And first part of:
http://github.com/ezsystems/ezpublish/commit/353f3f868edd0e9414dd718a3b775f71faba7006

But this did not actually sove the subitems issue so have been reverted.

Note, there was also an similar issue with object name:

http://github.com/ezsystems/ezpublish/commit/82412edb3ef3512e26374ab90354588743358ab9

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Christian Pfeffer Gjengedal

Thursday 21 October 2010 7:06:24 am

One relevant issue: http://issues.ez.no/IssueView.php?Id=17355