Browse Source

fixed putenv usage only if safemode=off

centaurix 23 years ago
parent
commit
eec7b42ac8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/validate.php

+ 1 - 1
src/validate.php

@@ -80,7 +80,7 @@ global $username, $data_dir;
 set_up_language(getPref($data_dir, $username, 'language'));
 
 $timeZone = getPref($data_dir, $username, 'timezone');
-if ( $timeZone != SMPREF_NONE ) {
+if ( $timeZone != SMPREF_NONE && !ini_get("safe_mode")) {
     putenv("TZ=".$timeZone);
 }
 ?>