Use password input for _md5 and _sha1 fields (Editor)

This commit is contained in:
Jakub Vrana 2011-01-25 16:40:33 +01:00
parent fdea1970d0
commit 0926122e14
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -415,6 +415,9 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
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 '';
}