Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sucs-site
Commits
83f21ec5
Commit
83f21ec5
authored
Feb 06, 2019
by
Imran Hussain
Browse files
[1/?] Allow student IDs > 6 digits
parent
23899139
Pipeline
#526
passed with stage
in 3 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/validation.php
View file @
83f21ec5
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment