about summary refs log tree commit diff
path: root/sourcecodes/input_validate.php
diff options
context:
space:
mode:
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;