mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 00:54:08 +02:00
Properly unescape apostrophe in column name
This commit is contained in:
@@ -17,7 +17,7 @@ $text_length = null;
|
|||||||
foreach ($fields as $key => $field) {
|
foreach ($fields as $key => $field) {
|
||||||
$name = $adminer->fieldName($field);
|
$name = $adminer->fieldName($field);
|
||||||
if (isset($field["privileges"]["select"]) && $name != "") {
|
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)) {
|
if (is_shortable($field)) {
|
||||||
$text_length = $adminer->selectLengthProcess();
|
$text_length = $adminer->selectLengthProcess();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user