about summary refs log tree commit diff
path: root/sourcecodes/input_validate.php
diff options
context:
space:
mode:
authorziejd22019-01-28 16:31:54 -0600
committerziejd22019-01-28 16:31:54 -0600
commitbb9d93322abf825368dedaafc2376ef8fdfc1e2f (patch)
tree10b9b3dd405d8a73aa4784e313525159cade3f3b /sourcecodes/input_validate.php
parentc4949358bfeecdac35802f8369f4f97a21e5fddb (diff)
downloadBNW-bb9d93322abf825368dedaafc2376ef8fdfc1e2f.tar.gz
Jan 28 2019 update
Diffstat (limited to 'sourcecodes/input_validate.php')
-rw-r--r--sourcecodes/input_validate.php2
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;