patch #2602633 [core] support column name having square brackets

This commit is contained in:
Marc Delisle
2009-02-20 09:37:49 +00:00
parent de126075ef
commit 5a1df0684d
5 changed files with 54 additions and 24 deletions

View File

@@ -68,7 +68,8 @@ if (false !== $possibly_uploaded_val) {
$type = '';
}
$f = 'field_' . md5($key);
// $key is and md5() of the fieldname
$f = 'field_' . $key;
if (0 === strlen($val)) {
// default
@@ -96,7 +97,7 @@ if (false !== $possibly_uploaded_val) {
// mode, insert empty field because no values were submitted. If protected
// blobs where set, insert original fields content.
if (! empty($prot_row[$key])) {
$val = '0x' . bin2hex($prot_row[$key]);
$val = '0x' . bin2hex($prot_row[$me_fields_name[$key]]);
} else {
$val = '';
}