summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-01-20 05:57:40 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2012-01-20 05:57:40 -0700
commit48387425e5c6464f9f9c4f15d91114ccecec1d00 (patch)
tree2a2b4c6e15b826b3acff3073bbb7e8a2006d299d /usr/local/captiveportal
parent2ce660ad4d8195b250c738634f90bb9682c07c13 (diff)
downloadpfsense-48387425e5c6464f9f9c4f15d91114ccecec1d00.zip
pfsense-48387425e5c6464f9f9c4f15d91114ccecec1d00.tar.gz
Should be preg_split instead of explode
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 3629f15..e72d5f2 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -147,7 +147,7 @@ EOD;
// $timecredit contains either a credit in minutes or an error message
if ($timecredit > 0) { // voucher is valid. Remaining minutes returned
// if multiple vouchers given, use the first as username
- $a_vouchers = explode("[\t\n\r ]+",$voucher);
+ $a_vouchers = preg_split("/[\t\n\r ]+/s",$voucher);
$voucher = $a_vouchers[0];
$attr = array( 'voucher' => 1,
'session_timeout' => $timecredit*60,
OpenPOWER on IntegriCloud