From bb9d93322abf825368dedaafc2376ef8fdfc1e2f Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Mon, 28 Jan 2019 16:31:54 -0600 Subject: Jan 28 2019 update --- sourcecodes/input_validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sourcecodes/input_validate.php') 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; -- cgit 1.4.1