summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-20 21:16:26 +0000
committerErmal <eri@pfsense.org>2011-07-20 21:16:41 +0000
commitbbcc16cb0d3d0f34b876c095b456f9dbc727d4d1 (patch)
tree1270034b5ff43679fc6243b95cf0fec4bed09a85 /etc
parent51cd7a1e31fd5018aa465c0de66905e759f2e8cb (diff)
downloadpfsense-bbcc16cb0d3d0f34b876c095b456f9dbc727d4d1.zip
pfsense-bbcc16cb0d3d0f34b876c095b456f9dbc727d4d1.tar.gz
Fix php behaviour on xmlrpc sync and vouchers starting with a number. Apparently php uses that to deduce the type of var and gets confused.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/voucher.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 57cc377..586743f 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -144,7 +144,7 @@ function xmlrpc_sync_used_voucher($voucher_received, $syncip, $port, $password,
$method = 'pfsense.exec_php';
$execcmd = <<<EOF
require_once('/etc/inc/voucher.inc');
- \$timeleft = voucher_auth({$voucher_received});
+ \$timeleft = voucher_auth(\$voucher_received);
\$toreturn = array();
\$toreturn['timeleft'] = \$timeleft;
\$toreturn['voucher']['roll'] = \$config['voucher']['roll'];
OpenPOWER on IntegriCloud