Apply processInput to modified value

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1515 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2010-05-05 08:52:20 +00:00
parent e5969d4eaf
commit 8b7aefcb94

View file

@ -112,7 +112,7 @@ if ($_POST && !$error) {
$set = array();
foreach ($row as $key => $val) {
$key = bracket_escape($key, 1); // 1 - back
$set[] = idf_escape($key) . " = " . $connection->quote($adminer->editVal($val, $fields[$key]));
$set[] = idf_escape($key) . " = " . $adminer->processInput($fields[$key], $val);
}
$result = queries("UPDATE" . limit1(idf_escape($TABLE) . " SET " . implode(", ", $set) . " WHERE " . where_check($unique_idf) . ($where ? " AND " . implode(" AND ", $where) : ""))); // can change row on a different page without unique key
if (!$result) {