Forums / Setup & design / Underscore in ini files and admin edition
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