From: Jakub Vrana Date: Sat, 27 Apr 2013 06:25:35 +0000 (-0700) Subject: Properly unescape apostrophe in column name X-Git-Tag: v3.7.0~32 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=d97ae22fb440e3b368ed0df2f60ba37770de57c4;p=adminer.git Properly unescape apostrophe in column name --- 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(); }