Escape SQL query for inline editing
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
945c58b9d2
commit
b8f1e0f325
@ -1375,7 +1375,7 @@ AJAX.registerOnload('functions.js', function() {
|
||||
var $inner_sql = $(this).parent().prev().find('.inner_sql');
|
||||
var old_text = $inner_sql.html();
|
||||
|
||||
var new_content = "<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">" + sql_query + "</textarea>\n";
|
||||
var new_content = "<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">" + escapeHtml(sql_query) + "</textarea>\n";
|
||||
new_content += "<input type=\"submit\" id=\"sql_query_edit_save\" class=\"button btnSave\" value=\"" + PMA_messages['strGo'] + "\"/>\n";
|
||||
new_content += "<input type=\"button\" id=\"sql_query_edit_discard\" class=\"button btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\"/>\n";
|
||||
var $editor_area = $('div#inline_editor');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user