Revision 1e9b4611
Added by Renato Botelho almost 12 years ago
usr/local/www/vpn_pptp.php | ||
---|---|---|
87 | 87 |
array(gettext("RADIUS server address"),gettext("RADIUS shared secret"))); |
88 | 88 |
} |
89 | 89 |
|
90 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
|
|
90 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |
|
91 | 91 |
|
92 | 92 |
if (($_POST['localip'] && !is_ipaddr($_POST['localip']))) { |
93 | 93 |
$input_errors[] = gettext("A valid server address must be specified."); |
... | ... | |
119 | 119 |
$reqdfields = explode(" ", "redir"); |
120 | 120 |
$reqdfieldsn = array(gettext("PPTP redirection target address")); |
121 | 121 |
|
122 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
|
|
122 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |
|
123 | 123 |
|
124 | 124 |
if (($_POST['redir'] && !is_ipaddr($_POST['redir']))) { |
125 | 125 |
$input_errors[] = gettext("A valid target address must be specified."); |
Also available in: Unified diff
Remove call-time pass by reference for do_input_validation, helps ticket #2565