Skip to content

Commit

Permalink
Use password input for _md5 and _sha1 fields (Editor)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 25, 2011
1 parent fdea197 commit 0926122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes.txt
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions editor/include/adminer.inc.php
Expand Up @@ -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 '';
}

Expand Down

0 comments on commit 0926122

Please sign in to comment.