Skip to content

Commit

Permalink
RA-1424: escapeJs vulnerable to XSS. (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsereko committed Jun 16, 2021
1 parent f3afce9 commit a7eefb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omod/src/main/webapp/pages/metadata/locations/location.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def parentLocationOptions = []
existingLocations.each {
parentLocationOptions.push([ label: ui.escapeJs(ui.format(it)), value: it.id ])
parentLocationOptions.push([ label: ui.encodeJavaScript(ui.format(it)), value: it.id ])
}
%>

Expand Down

0 comments on commit a7eefb5

Please sign in to comment.