summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-01-20 12:16:46 +0100
committersmos <seth.mos@dds.nl>2012-01-20 12:18:13 +0100
commit2ce660ad4d8195b250c738634f90bb9682c07c13 (patch)
treee6cddcf64d0eb63d1b67d702fdadf6f46f06aa04 /tmp
parent212ab80f689b35f9ddc3baea153970de26c924ea (diff)
downloadpfsense-2ce660ad4d8195b250c738634f90bb9682c07c13.zip
pfsense-2ce660ad4d8195b250c738634f90bb9682c07c13.tar.gz
Unbreak a number of explode() replacements which required preg_split()
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 2285ae8..9a273cf 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -23,7 +23,7 @@
$newslicedir = '/tmp' . $ARGV[1];
setup_serial_port("upgrade", $newslicedir);
- $files_to_process = explode("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
+ $files_to_process = file("/etc/pfSense.obsoletedfiles");
foreach($files_to_process as $filename)
if(file_exists($filename))
exec("/bin/rm -f $filename");
OpenPOWER on IntegriCloud