diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-23 18:28:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-23 18:28:54 +0000 |
commit | 98b5b72baf60b50e0817c7523692e610196f8c1f (patch) | |
tree | 46cb670568dc6fc1b17f6ae9e768f9cb779e5b54 /usr/local/www | |
parent | 1498fba3923f576f748da5b3caa5086b551b0d90 (diff) | |
download | pfsense-98b5b72baf60b50e0817c7523692e610196f8c1f.zip pfsense-98b5b72baf60b50e0817c7523692e610196f8c1f.tar.gz |
Kill carriage returns on timezone list
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/wizard.php | 4 |
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']); |