Project

General

Profile

« Previous | Next » 

Revision 5f25bfea

Added by Jim Pingle almost 15 years ago

Don't allow a user-entered PPTP password to start with !, this will cause mpd to attempt an external auth program.

View differences:

usr/local/www/vpn_pptp_users_edit.php
87 87
	if (preg_match("/[[:cntrl:]\"]/", $_POST['password']))
88 88
		$input_errors[] = gettext("The password contains invalid characters.");
89 89

  
90
	if (preg_match("/^!/", $_POST['password']))
91
		$input_errors[] = gettext("The password cannot start with '!'.");
92

  
90 93
	if (($_POST['password']) && ($_POST['password'] != $_POST['password2'])) {
91 94
		$input_errors[] = gettext("The passwords do not match.");
92 95
	}

Also available in: Unified diff