diff --git a/changes.txt b/changes.txt index fd9d508c..c1fbaa30 100644 --- a/changes.txt +++ b/changes.txt @@ -10,6 +10,7 @@ Create table default data type: int Create table keyboard shortcuts: Ctrl+Up, Ctrl+Down Homepage customization Use IN for search in numeric fields (Editor) +Use password input for _md5 and _sha1 fields (Editor) Work without session.use_cookies (bug #3138640) Portuguese translation diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 91a61a83..cabcdae6 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -415,6 +415,9 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 if (ereg('date|timestamp', $field["type"])) { return " (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength } + if (eregi('_(md5|sha1)$', $field["field"])) { + return ""; + } return ''; }