Properly unescape apostrophe in column name
This commit is contained in:
parent
49c1484722
commit
d97ae22fb4
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue