summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index c28713c1b..79ab76c6b 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -518,7 +518,7 @@ class CI_Validation {
*/
function alpha_numeric($str)
{
- return ( ! preg_match("/^([-a-z0-9])+$/i", $str)) ? FALSE : TRUE;
+ return ( ! preg_match("/^([a-z0-9])+$/i", $str)) ? FALSE : TRUE;
}
// --------------------------------------------------------------------