Révision 69b79ff0
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/vpn_ipsec_phase1.php | ||
---|---|---|
171 | 171 |
case "xauth_psk_server": |
172 | 172 |
$reqdfields = explode(" ", "pskey"); |
173 | 173 |
$reqdfieldsn = array(gettext("Pre-Shared Key")); |
174 |
$validate_pskey = true; |
|
174 | 175 |
break; |
175 | 176 |
case "hybrid_rsa_server": |
176 | 177 |
case "xauth_rsa_server": |
... | ... | |
186 | 187 |
|
187 | 188 |
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors); |
188 | 189 |
|
190 |
if (isset($validate_pskey) && isset($pconfig['pskey']) && !preg_match('/^[[:ascii:]]*$/', $pconfig['pskey'])) { |
|
191 |
unset($validate_pskey); |
|
192 |
$input_errors[] = gettext("Pre-Shared Key contains invalid characters."); |
|
193 |
} |
|
194 |
|
|
189 | 195 |
if (($pconfig['lifetime'] && !is_numeric($pconfig['lifetime']))) |
190 | 196 |
$input_errors[] = gettext("The P1 lifetime must be an integer."); |
191 | 197 |
|
Formats disponibles : Unified diff
Fix PSK for non-ascii also here, ticket #3917