Escape token in HTML
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
44709d69f4
commit
c6c7a12586
@ -4670,7 +4670,7 @@ AJAX.registerOnload('functions.js', function () {
|
||||
$('.logout').click(function() {
|
||||
var form = $(
|
||||
'<form method="POST" action="' + $(this).attr('href') + '" class="disableAjax">' +
|
||||
'<input type="hidden" name="token" value="' + PMA_commonParams.get('token') + '"/>' +
|
||||
'<input type="hidden" name="token" value="' + escapeHtml(PMA_commonParams.get('token')) + '"/>' +
|
||||
'</form>'
|
||||
);
|
||||
$('body').append(form);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user