Don't try to read a zero length file. http://mosquito.wordpress.org/view.php?id=1116 Props: MC_incubus
git-svn-id: http://svn.automattic.com/wordpress/trunk@2448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7875b024a8
commit
61aca1c30a
|
@ -72,7 +72,7 @@ default:
|
|||
if (!is_file($real_file))
|
||||
$error = 1;
|
||||
|
||||
if (!$error) {
|
||||
if (!$error && filesize($real_file) > 0) {
|
||||
$f = fopen($real_file, 'r');
|
||||
$content = fread($f, filesize($real_file));
|
||||
$content = htmlspecialchars($content);
|
||||
|
|
Loading…
Reference in New Issue