diff options
| author | ziejd2 | 2019-01-28 16:31:54 -0600 |
|---|---|---|
| committer | ziejd2 | 2019-01-28 16:31:54 -0600 |
| commit | bb9d93322abf825368dedaafc2376ef8fdfc1e2f (patch) | |
| tree | 10b9b3dd405d8a73aa4784e313525159cade3f3b /sourcecodes/input_validate.php | |
| parent | c4949358bfeecdac35802f8369f4f97a21e5fddb (diff) | |
| download | BNW-bb9d93322abf825368dedaafc2376ef8fdfc1e2f.tar.gz | |
Jan 28 2019 update
Diffstat (limited to 'sourcecodes/input_validate.php')
| -rw-r--r-- | sourcecodes/input_validate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sourcecodes/input_validate.php b/sourcecodes/input_validate.php index 7c9dbe60..f5d5a4fc 100644 --- a/sourcecodes/input_validate.php +++ b/sourcecodes/input_validate.php @@ -23,7 +23,7 @@ function valid_input($input) $input = stripslashes($input); $input = htmlspecialchars($input); //check if keyval contains only letters, numbers, hyphens, underscore, periods, or whitespace. - if (!preg_match('/^[-A-Za-z\d\ \t\r\n_\.]+$/',$input)) { + if (!preg_match('/^[-A-Za-z\d\ \t\r\n_\.\-]+$/',$input)) { header("Location: input_error.php"); } return $input; |
