Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7f3cc642
Commit
7f3cc642
authored
May 12, 2015
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1163393: XSS in the new jQuery autocomplete code
r=dkl,a=glob
parent
bd41649c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
field.js
js/field.js
+6
-2
No files found.
js/field.js
View file @
7f3cc642
...
@@ -844,8 +844,12 @@ $(function() {
...
@@ -844,8 +844,12 @@ $(function() {
};
};
},
},
formatResult
:
function
(
suggestion
,
currentValue
)
{
formatResult
:
function
(
suggestion
,
currentValue
)
{
return
suggestion
.
data
.
name
===
''
?
return
(
suggestion
.
data
.
name
===
''
?
suggestion
.
data
.
login
:
suggestion
.
data
.
name
+
' ('
+
suggestion
.
data
.
login
+
')'
;
suggestion
.
data
.
login
:
suggestion
.
data
.
name
+
' ('
+
suggestion
.
data
.
login
+
')'
)
.
replace
(
/&/g
,
'&'
)
.
replace
(
/</g
,
'<'
)
.
replace
(
/>/g
,
'>'
)
.
replace
(
/"/g
,
'"'
);
},
},
onSearchStart
:
function
(
params
)
{
onSearchStart
:
function
(
params
)
{
var
that
=
$
(
this
);
var
that
=
$
(
this
);
...
...
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