escape all passed params in js - fixes #2922
This commit is contained in:
parent
d54ff5f341
commit
663a5a0e7c
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@
|
||||||
window.setTimeout(window.close, 2000, true);
|
window.setTimeout(window.close, 2000, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
var contents = "#{params[:title]} - #{params[:url]}";
|
var contents = "#{escape_javascript params[:title]} - #{escape_javascript params[:url]}";
|
||||||
var notes = "#{escape_javascript params[:notes]}";
|
var notes = "#{escape_javascript params[:notes]}";
|
||||||
if (notes.length > 0){
|
if (notes.length > 0){
|
||||||
contents = contents + " - " + notes;
|
contents = contents + " - " + notes;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue