From dd0a92bc125b8904590d9a528dbee348a7f26973 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 29 Mar 2007 13:52:26 +0000 Subject: [PATCH] bug #1690561 Blobs being cleared on Edit of row --- ChangeLog | 1 + libraries/tbl_replace_fields.inc.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index ee5aa2e2b..550c58503 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $HeadURL$ 2.10.0.3 (not released yet) ===================== +- bug #1690561 Blobs being cleared on Edit of row - bug #1679801 [core] XSS vulnerability in PMA_sanitize(), thanks to sp3x SecurityReason 2007-03-02 Marc Delisle diff --git a/libraries/tbl_replace_fields.inc.php b/libraries/tbl_replace_fields.inc.php index ec3c05378..89d5efdd0 100644 --- a/libraries/tbl_replace_fields.inc.php +++ b/libraries/tbl_replace_fields.inc.php @@ -190,6 +190,8 @@ if (false === $valid_file_was_uploaded) { if (! empty($prot_row[$key])) { $val = '0x' . bin2hex($prot_row[$key]); $seen_binary = true; + } else { + $val = ''; } break;