Index: trunk/phase3/includes/HTMLFileCache.php |
— | — | @@ -165,7 +165,10 @@ |
166 | 166 | return $origtext; // return to output |
167 | 167 | } |
168 | 168 | $text = $origtext; |
| 169 | + // Empty? |
169 | 170 | if( strcmp($text,'') == 0 ) return ''; |
| 171 | + // Probably broken? (OOM and PHP errors) |
| 172 | + if( mb_strlen($text) < 512 ) return $origtext; |
170 | 173 | |
171 | 174 | wfDebug(" saveToFileCache()\n", false); |
172 | 175 | |