Skip to content

Commit

Permalink
Fix: bad regex syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 7, 2014
1 parent d0c3a79 commit 8c728ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/main.inc.php
Expand Up @@ -446,9 +446,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"]))
{
Expand Down

0 comments on commit 8c728ac

Please sign in to comment.