Skip to content
Permalink
Browse files Browse the repository at this point in the history
escape query in error message
  • Loading branch information
ruleant committed May 29, 2013
1 parent 2189c87 commit 9b35516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view_create.php
Expand Up @@ -114,7 +114,8 @@
$response->addJSON(
'message',
PMA_Message::error(
"<i>$sql_query</i><br /><br />" . PMA_DBI_getError()
"<i>" . htmlspecialchars($sql_query) . "</i><br /><br />"
. PMA_DBI_getError()
)
);
$response->isSuccess(false);
Expand Down

0 comments on commit 9b35516

Please sign in to comment.