Escape token in HTML

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-06-13 10:37:14 +02:00
parent 44709d69f4
commit c6c7a12586

View File

@ -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);