Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
F
foodsharing
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
242
Issues
242
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
foodsharing-dev
foodsharing
Commits
3efee179
Commit
3efee179
authored
Feb 19, 2019
by
chandi
Committed by
Matthias Larisch
Feb 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix potential stored XSS in LoginXhr::joinValidate()
parent
bedf5246
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Modules/Login/LoginXhr.php
src/Modules/Login/LoginXhr.php
+1
-1
No files found.
src/Modules/Login/LoginXhr.php
View file @
3efee179
...
...
@@ -206,7 +206,7 @@ class LoginXhr extends Control
$data
[
'country'
]
=
strip_tags
(
$data
[
'country'
]
??
null
);
$data
[
'country'
]
=
strtolower
(
$data
[
'country'
]);
$data
[
'country'
]
=
trim
(
$data
[
'country'
]);
$data
[
'nr'
]
=
$data
[
'nr'
]
??
null
;
$data
[
'nr'
]
=
htmlspecialchars
(
$data
[
'nr'
])
??
null
;
$data
[
'newsletter'
]
=
(
int
)
$data
[
'newsletter'
];
if
(
!
in_array
(
$data
[
'newsletter'
],
array
(
0
,
1
),
true
))
{
...
...
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