Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
518
Issue boards
Milestones
Wiki
Code
Merge requests
80
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
vtiger
vtigercrm
Commits
243bc58c
Commit
243bc58c
authored
11 months ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Fixes : Xss payload in Users last name and first name issue is fixed
parent
8f777c45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1193
Fixes : XSS payload in User's first name and last name issue is fixed.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/utils/VtlibUtils.php
+0
-7
0 additions, 7 deletions
include/utils/VtlibUtils.php
modules/Users/Users.php
+1
-1
1 addition, 1 deletion
modules/Users/Users.php
with
1 addition
and
8 deletions
include/utils/VtlibUtils.php
+
0
−
7
View file @
243bc58c
...
...
@@ -530,13 +530,6 @@ function vtlib_tosingular($text) {
return
$text
;
}
/**
* Helps to remove HTML tags and attributes.
*/
function
vtlib_strip_tagattrs
(
$str
)
{
return
preg_replace
(
'/=/'
,
'-'
,
strip_tags
(
$str
));
}
/**
* Get picklist values that is accessible by all roles.
*/
...
...
This diff is collapsed.
Click to expand it.
modules/Users/Users.php
+
1
−
1
View file @
243bc58c
...
...
@@ -779,7 +779,7 @@ class Users extends CRMEntity {
}
$userlabel
=
trim
(
decode_html
(
$userlabel
));
$this
->
column_fields
[
'userlabel'
]
=
vtlib_strip_
tagattr
s
(
$userlabel
);
$this
->
column_fields
[
'userlabel'
]
=
vtlib_strip_
quoted
(
strip_tag
s
(
$userlabel
)
)
;
}
if
(
$insertion_mode
==
'edit'
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment