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
This commit is contained in:
Michael Adams (mdawaffe) 2015-05-06 21:45:58 +00:00
parent 2abdcf41cf
commit a42401d0c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}