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

eZ debug

Timing: Jan 29 2025 13:38:37
Script start
Timing: Jan 29 2025 13:38:37
Module start 'content'
Timing: Jan 29 2025 13:38:37
Module end 'content'
Timing: Jan 29 2025 13:38:37
Script end

Main resources:

Total runtime0.3192 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9297180.8438
Module start 'content' 0.00580.0059 768.773493.9609
Module end 'content' 0.01170.3074 862.7344522.1563
Script end 0.3191  1,384.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.1354200.0002
Check MTime0.00150.4669200.0001
Mysql Total
Database connection0.00060.196410.0006
Mysqli_queries0.263482.50561410.0019
Looping result0.00160.51591390.0000
Template Total0.307096.210.3070
Template load0.00080.258410.0008
Template processing0.306295.915710.3062
Override
Cache load0.00050.169210.0005
Sytem overhead
Fetch class attribute can translate value0.00170.537910.0017
XML
Image XML parsing0.00020.075510.0002
General
dbfile0.00932.9139200.0005
String conversion0.00000.001630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs