Underscore in ini files and admin edition

Author Message

Gwenal Le Bihan

Wednesday 23 January 2008 4:20:35 am

Hello,

I'm having this following bug in my admin while try to edit some ini files that contains variables like the following :

[Tool_node_list]
parent_node=2

I want to change the parent_node and I can not save my ini file because there is an underscore in the name and in kernel/settings/validation.php @L61 there's the following code :

if ( !preg_match( "/^[A-Za-z0-9]*$/", $fieldValue ) )
....

To fix my pb, i've done the following but I hate touching the kernel ;-)

if ( !preg_match( "/^[A-Za-z0-9_]*$/", $fieldValue ) )
 ....

Is there another way to go or is is a fixed bug already (couldn't find it)?
(I'm running ez3.9.2 and 3.10.0)

Thank you

Gwen

Ɓukasz Serwatka

Saturday 26 January 2008 1:53:50 pm

Hi,

Feel free to report this problem in the issue tracker.

http://issues.ez.no

You can submit your patch as attachment to the report.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19 2025 06:09:55
Script start
Timing: Jan 19 2025 06:09:55
Module start 'layout'
Timing: Jan 19 2025 06:09:55
Module start 'content'
Timing: Jan 19 2025 06:09:56
Module end 'content'
Timing: Jan 19 2025 06:09:56
Script end

Main resources:

Total runtime0.7499 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.4219152.6406
Module start 'layout' 0.00580.0041 743.062539.4766
Module start 'content' 0.00990.7387 782.5391529.5547
Module end 'content' 0.74860.0012 1,312.09388.1250
Script end 0.7498  1,320.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4340160.0002
Check MTime0.00140.1835160.0001
Mysql Total
Database connection0.00090.116610.0009
Mysqli_queries0.699993.3327540.0130
Looping result0.00050.0650520.0000
Template Total0.715295.420.3576
Template load0.00200.269920.0010
Template processing0.713295.108620.3566
Template load and register function0.00030.037610.0003
states
state_id_array0.00220.289410.0022
state_identifier_array0.00100.139420.0005
Override
Cache load0.00170.2219210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.117920.0004
Fetch class attribute name0.00080.112830.0003
XML
Image XML parsing0.00070.099320.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.1038180.0000
String conversion0.00000.001740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs