From cdfe8818da728aa7a81fed118e54a79cd42af26a Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Fri, 4 Jul 2014 13:16:48 +0200 Subject: [PATCH] avoid message Delimiter must not be alphanumeric or backslash in /home/bobby/Eclipse/workspace/dolibarr/htdocs/main.inc.php on line 450 on preg_replace --- htdocs/main.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e1cb471b58d2f..c24f9fc20360d 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -447,9 +447,9 @@ function analyse_sql_and_script(&$var, $type) $dol_authmode=$conf->authmode; // This properties is defined only when logged, to say what mode was successfully used $dol_tz=$_POST["tz"]; $dol_tz_string=$_POST["tz_string"]; - $dol_tz_string=preg_replace('\s*\(.+\)$','',$dol_tz_string); - $dol_tz_string=preg_replace(',','/',$dol_tz_string); - $dol_tz_string=preg_replace('\s','_',$dol_tz_string); + $dol_tz_string=preg_replace('/\s*\(.+\)$/','',$dol_tz_string); + $dol_tz_string=preg_replace('/,/' ,'/',$dol_tz_string); + $dol_tz_string=preg_replace('/\s/','_',$dol_tz_string); $dol_dst=0; if (isset($_POST["dst_first"]) && isset($_POST["dst_second"])) {