Skip to content
Snippets Groups Projects
Commit 4e582c92 authored by Thomas Lake's avatar Thomas Lake :wrench:
Browse files

Remove eregi()

parent 6b3c3794
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ function validSID($SID,$override){ ...@@ -160,7 +160,7 @@ function validSID($SID,$override){
} }
} }
else{ else{
if(!eregi("^[0-9]*$", $SID) || strlen($SID) != 6){ if(!preg_match("/^[0-9]*$/", $SID) || strlen($SID) != 6){
$error = "Invalid student ID"; $error = "Invalid student ID";
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment