Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
sucs-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sucssite
sucs-site
Commits
c274976e
Commit
c274976e
authored
Feb 06, 2019
by
Imran Hussain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'sucs-site'
Beta to live See merge request
!104
parents
52425b80
adbc05b8
Pipeline
#528
passed with stages
in 3 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
components/motd.php
components/motd.php
+1
-0
lib/validation.php
lib/validation.php
+1
-1
No files found.
components/motd.php
View file @
c274976e
...
...
@@ -4,6 +4,7 @@ $motd_file = "/etc/motd";
function
decode_entities
(
$text
,
$quote_style
=
ENT_COMPAT
)
{
$text
=
html_entity_decode
(
$text
,
$quote_style
,
'ISO-8859-1'
);
// NOTE: UTF-8 does not work!
$text
=
preg_replace
(
'~&ndash\;~i'
,
'-'
,
$text
);
$text
=
preg_replace_callback
(
'~&#x([0-9a-f]+);~i'
,
function
(
$matches
)
{
foreach
(
$matches
as
$match
)
{
...
...
lib/validation.php
View file @
c274976e
...
...
@@ -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