[SUCS Devel] [Git][sucssite/sucs-site][master] [1/?] Allow student IDs > 6 digits
Imran Hussain
imranh at sucs.org
Wed Feb 6 14:25:35 GMT 2019
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
83f21ec5 by Imran Hussain at 2019-02-06T14:25:31Z
[1/?] Allow student IDs > 6 digits
- - - - -
1 changed file:
- lib/validation.php
Changes:
=====================================
lib/validation.php
=====================================
@@ -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)) {
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/83f21ec5225627b5ba5f1d6ed03e2aef444ab8cc
--
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/83f21ec5225627b5ba5f1d6ed03e2aef444ab8cc
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190206/acdff365/attachment.html>
More information about the Devel
mailing list