From a42401d0c9a31155939123c554fcf0f0f842d653 Mon Sep 17 00:00:00 2001 From: "Michael Adams (mdawaffe)" Date: Wed, 6 May 2015 21:45:58 +0000 Subject: [PATCH] Upgrade: Ensure unintelligible DB schemas don't result in content loss. See #32165. git-svn-id: https://develop.svn.wordpress.org/trunk@32417 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 598635067f..8515113f78 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -1461,7 +1461,7 @@ function upgrade_430() { ); } - if ( 'byte' !== $content_length['type'] ) { + if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) { // Sites with malformed DB schemas are on their own. return; }