summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pptp_users_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_pptp_users_edit.php')
-rwxr-xr-xusr/local/www/vpn_pptp_users_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/vpn_pptp_users_edit.php b/usr/local/www/vpn_pptp_users_edit.php
index 9494c76..f159931 100755
--- a/usr/local/www/vpn_pptp_users_edit.php
+++ b/usr/local/www/vpn_pptp_users_edit.php
@@ -87,6 +87,9 @@ if ($_POST) {
if (preg_match("/[[:cntrl:]\"]/", $_POST['password']))
$input_errors[] = gettext("The password contains invalid characters.");
+ if (preg_match("/^!/", $_POST['password']))
+ $input_errors[] = gettext("The password cannot start with '!'.");
+
if (($_POST['password']) && ($_POST['password'] != $_POST['password2'])) {
$input_errors[] = gettext("The passwords do not match.");
}
OpenPOWER on IntegriCloud