summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
committersmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
commitcfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch)
tree465ee07c80898171a4cc41a6ac82d9133012797d /etc/inc/voucher.inc
parent80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff)
downloadpfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.zip
pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.tar.gz
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index dc7f613..b3bc5a4 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -213,7 +213,7 @@ function voucher_expire($voucher_received) {
}
// split into an array. Useful for multiple vouchers given
- $a_vouchers_received = split("[\t\n\r ]+",$voucher_received);
+ $a_vouchers_received = preg_split("/[\t\n\r ]+/s", $voucher_received);
$active_dirty = false;
$cpdb = captiveportal_read_db(false, 4); /* Indexed by Voucher */
@@ -329,7 +329,7 @@ function voucher_auth($voucher_received, $test = 0) {
}
// split into an array. Useful for multiple vouchers given
- $a_vouchers_received = split("[\t\n\r ]+",$voucher_received);
+ $a_vouchers_received = preg_split("/[\t\n\r ]+/s", $voucher_received);
$error = 0;
$test_result = array(); // used to display for voucher test option in GUI
$total_minutes = 0;
OpenPOWER on IntegriCloud