mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Prevent code injection
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ if(isset($last_error) && ($last_error["type"] === E_WARNING || $last_error["type
|
||||
}
|
||||
|
||||
# Timezone is set in docker via ENV otherwise get it from commandline
|
||||
$timezone=getenv("TZ");
|
||||
$timezone=htmlspecialchars(getenv("TZ"));
|
||||
if (empty($timezone)) {
|
||||
$timezone=shell_exec("date +'%Z'");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user