Don't try to read a zero length file. http://mosquito.wordpress.org/view.php?id=1116 Props: MC_incubus
git-svn-id: https://develop.svn.wordpress.org/trunk@2448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7066c140e8
commit
184d9bec2d
@ -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
Block a user