fixed putenv usage only if safemode=off
authorcentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Apr 2002 14:23:53 +0000 (14:23 +0000)
committercentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Apr 2002 14:23:53 +0000 (14:23 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2674 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/validate.php

index 3763001cbb91fd17d5217d4da4788d57884ac3b2..9849264c5c3c7a3a43ac9432fcd25786c7017bfb 100644 (file)
@@ -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);
 }
 ?>