From d97ae22fb440e3b368ed0df2f60ba37770de57c4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 26 Apr 2013 23:25:35 -0700 Subject: [PATCH] Properly unescape apostrophe in column name --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 4ef073fd..fc005485 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -17,7 +17,7 @@ $text_length = null; foreach ($fields as $key => $field) { $name = $adminer->fieldName($field); if (isset($field["privileges"]["select"]) && $name != "") { - $columns[$key] = html_entity_decode(strip_tags($name)); + $columns[$key] = html_entity_decode(strip_tags($name), ENT_QUOTES); if (is_shortable($field)) { $text_length = $adminer->selectLengthProcess(); }