summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-23 18:28:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-23 18:28:54 +0000
commit98b5b72baf60b50e0817c7523692e610196f8c1f (patch)
tree46cb670568dc6fc1b17f6ae9e768f9cb779e5b54 /usr/local/www/wizard.php
parent1498fba3923f576f748da5b3caa5086b551b0d90 (diff)
downloadpfsense-98b5b72baf60b50e0817c7523692e610196f8c1f.zip
pfsense-98b5b72baf60b50e0817c7523692e610196f8c1f.tar.gz
Kill carriage returns on timezone list
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index 9c81df1..917d99c 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -64,6 +64,10 @@ exec('/usr/bin/tar -tzf /usr/share/zoneinfo.tgz', $timezonelist);
$timezonelist = array_filter($timezonelist, 'is_timezone');
sort($timezonelist);
+/* kill carriage returns */
+for($x=0; $x<count($timezonelist); $x++)
+ $timezonelist[$x] = str_replace("\n", "", $timezonelist[$x]);
+
if ($pkg['step'][$stepid]['includefile'])
require($pkg['step'][$stepid]['includefile']);
OpenPOWER on IntegriCloud