Commit 83f21ec5 authored by Imran Hussain's avatar Imran Hussain
Browse files

[1/?] Allow student IDs > 6 digits

parent 23899139
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ function validSID($SID, $override)
            return true;
        }
    } else {
        if (!preg_match("/^[0-9]*$/", $SID) || strlen($SID) != 6) {
        if (!preg_match("/^[0-9]{6,}$/", $SID)) {
            $error = "Invalid student ID";
            return false;
        } elseif (sidUsed($SID)) {