diff --git a/editor/example.php b/editor/example.php index e15807d8..b392a77f 100644 --- a/editor/example.php +++ b/editor/example.php @@ -30,7 +30,7 @@ function adminer_object() { function fieldName($field, $order = 0) { // only columns with comments will be displayed and only the first five in select - return ($order <= 5 ? h($field["comment"]) : ""); + return ($order <= 5 && !ereg('_(md5|sha1)$', $field["field"]) ? h($field["comment"]) : ""); } } diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index c7e4132c..0634241d 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -300,6 +300,9 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 if (ereg('date|time', $field["type"])) { $return[] = "now"; } + if (ereg('_(md5|sha1)$', $field["field"], $match)) { + $return[] = $match[1]; + } return $return; }