Fixed #9002 - PPPoE Service Name may contain ':'

This commit is contained in:
Steve Beaver 2018-10-04 08:24:48 -04:00
parent 9386784480
commit dac4cd0969

View File

@ -829,8 +829,9 @@ if ($_POST['apply']) {
$input_errors[] = gettext("A valid IPv6 gateway must be specified.");
}
}
if (($_POST['provider'] && !is_domain($_POST['provider']))) {
$input_errors[] = gettext("The service name contains invalid characters.");
if (($_POST['provider'] && (strpos($_POST['provider'], "\"")))) {
$input_errors[] = gettext("The service name may not contain quote characters.");
}
if (($_POST['pppoe_idletimeout'] != "") && !is_numericint($_POST['pppoe_idletimeout'])) {
$input_errors[] = gettext("The idle timeout value must be an integer.");