From f9d9d7a8981755c93591cf8036873276f0e1f4b7 Mon Sep 17 00:00:00 2001 From: centaurix Date: Wed, 3 Apr 2002 14:23:53 +0000 Subject: [PATCH] fixed putenv usage only if safemode=off git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2674 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validate.php b/src/validate.php index 3763001c..9849264c 100644 --- a/src/validate.php +++ b/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); } ?> -- 2.25.1