diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 288a2ea41..902e0dbd8 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2038,22 +2038,26 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force function PMA_buttonOrImage($button_name, $button_class, $image_name, $text, $image) { + if (false === $GLOBALS['cfg']['PropertiesIconic']) { + echo ' ' . "\n"; + return; + } + /* Opera has trouble with */ /* IE has trouble with ' . "\n"; } else { echo '' - . ($GLOBALS['cfg']['PropertiesIconic'] === 'both' ? ' ' . $text : '') . "\n"; + . ($GLOBALS['cfg']['PropertiesIconic'] === 'both' ? ' ' . htmlspecialchars($text) : '') . "\n"; } } // end function