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:26 +0000
commit12a5a0399fb4b22b436e0b8ca0aaf296bcc0a252 (patch)
tree8ff8eeed4a709d8c8acb49d3c7c289751ba66690 /etc
parenta7377124c257367e52474fba008ade4132457a0c (diff)
downloadpfsense-12a5a0399fb4b22b436e0b8ca0aaf296bcc0a252.zip
pfsense-12a5a0399fb4b22b436e0b8ca0aaf296bcc0a252.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 374ec70..5c60f2c 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