diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-includes/Text/Diff/Engine/xdiff.php --- a/web/wp-includes/Text/Diff/Engine/xdiff.php Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-includes/Text/Diff/Engine/xdiff.php Mon Nov 19 18:26:13 2012 +0100 @@ -5,9 +5,7 @@ * This class uses the xdiff PECL package (http://pecl.php.net/package/xdiff) * to compute the differences between the two input arrays. * - * $Horde: framework/Text_Diff/Diff/Engine/xdiff.php,v 1.6 2008/01/04 10:07:50 jan Exp $ - * - * Copyright 2004-2008 The Horde Project (http://www.horde.org/) + * Copyright 2004-2010 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, see http://opensource.org/licenses/lgpl-license.php. @@ -42,6 +40,9 @@ * valid, albeit a little less descriptive and efficient. */ $edits = array(); foreach ($diff as $line) { + if (!strlen($line)) { + continue; + } switch ($line[0]) { case ' ': $edits[] = &new Text_Diff_Op_copy(array(substr($line, 1)));