Skip to content

Commit

Permalink
Fix input error message to match the actual check
Browse files Browse the repository at this point in the history
  • Loading branch information
doktornotor authored Mar 6, 2017
1 parent 222e2ab commit 27f3e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/pfSense-pkg-cellular/files/usr/local/pkg/cellular.inc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function cellular_validate_input($post, &$input_errors) {
// Custom Status AT Command
if ($post['statuscmd'] != '') {
if (!preg_match('/^[A-Z0-9 _,;+=?"*#]*$/', $post['statuscmd'])) {
$input_errors[] = "The 'Custom Status AT Command' field may only contain A-Z, 0-9 and some other characters matching the /^[A-Z0-9 _,;+=?\"*#-]*$/ regex.";
$input_errors[] = "The 'Custom Status AT Command' field may only contain A-Z, 0-9 and some other characters matching the /^[A-Z0-9 _,;+=?\"*#]*$/ regex.";
}
}

Expand Down

0 comments on commit 27f3e2d

Please sign in to comment.