From 120f91ff6f8d638e836e99b29f635bbfd3fc8337 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 5fd832b76..76ec78f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,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 2.10.0.2 (2007-03-02) 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;