Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use password input for _md5 and _sha1 fields (Editor)

  • Loading branch information...
commit 0926122e14c18947f0fb665bc327bf02478d6a27 1 parent fdea197
Jakub Vrána authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  changes.txt
  2. +3 −0  editor/include/adminer.inc.php
1  changes.txt
View
@@ -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
3  editor/include/adminer.inc.php
View
@@ -415,6 +415,9 @@ function editInput($table, $field, $attrs, $value) {
if (ereg('date|timestamp', $field["type"])) {
return "<input value='" . h($value) . "'$attrs> (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
}
+ if (eregi('_(md5|sha1)$', $field["field"])) {
+ return "<input type='password' value='" . h($value) . "'$attrs>";
+ }
return '';
}
Please sign in to comment.
Something went wrong with that request. Please try again.