Fix: js not escaped
This commit is contained in:
parent
fd9565934c
commit
92fe8ebe1d
@ -2262,9 +2262,9 @@ class Form
|
|||||||
});
|
});
|
||||||
//alert(options);
|
//alert(options);
|
||||||
}
|
}
|
||||||
location.href=\''.$pageyes.'\' + options;
|
location.href=\''.dol_escape_js($pageyes).'\' + options;
|
||||||
}
|
}
|
||||||
'.($pageno?'if (choice == \'ko\') location.href=\''.$pageno.'\';':'').'
|
'.($pageno?'if (choice == \'ko\') location.href=\''.dol_escape_js($pageno).'\';':'').'
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
\''.dol_escape_js($langs->transnoentities("Yes")).'\': function() {
|
\''.dol_escape_js($langs->transnoentities("Yes")).'\': function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user