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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:10:08
Script start
Timing: Jan 18 2025 02:10:08
Module start 'layout'
Timing: Jan 18 2025 02:10:08
Module start 'content'
Timing: Jan 18 2025 02:10:09
Module end 'content'
Timing: Jan 18 2025 02:10:09
Script end

Main resources:

Total runtime0.6737 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 591.3203152.6250
Module start 'layout' 0.00720.0040 743.945339.4531
Module start 'content' 0.01120.6608 783.3984580.8516
Module end 'content' 0.67200.0016 1,364.250012.1563
Script end 0.6736  1,376.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5429160.0002
Check MTime0.00130.2002160.0001
Mysql Total
Database connection0.00140.209210.0014
Mysqli_queries0.612990.9803600.0102
Looping result0.00050.0812580.0000
Template Total0.637294.620.3186
Template load0.00300.444320.0015
Template processing0.634294.138920.3171
Template load and register function0.00030.043410.0003
states
state_id_array0.00120.173210.0012
state_identifier_array0.00100.142920.0005
Override
Cache load0.00240.3636260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.120330.0003
Fetch class attribute name0.00120.179650.0002
XML
Image XML parsing0.00130.186830.0004
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00180.2671240.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs