From 0926122e14c18947f0fb665bc327bf02478d6a27 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 25 Jan 2011 16:40:33 +0100 Subject: [PATCH] Use password input for _md5 and _sha1 fields (Editor) --- changes.txt | 1 + editor/include/adminer.inc.php | 3 +++ 2 files changed, 4 insertions(+) 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 ''; }