From: Roland Häder Date: Sat, 23 Jun 2012 11:18:32 +0000 (+0000) Subject: Added check for file size to prevent loading deprecated include files (which are... X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=115282fdfb1843565eb4823b3178141b7a668e25 Added check for file size to prevent loading deprecated include files (which are ~ 23 bytes) --- diff --git a/inc/inc-functions.php b/inc/inc-functions.php index 2534856c2c..ece36ddfa9 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -148,8 +148,8 @@ function isIncludeReadable ($inc) { // Construct FQFN $FQFN = getPath() . $inc; - // Is it readable? - $GLOBALS['inc_readable'][$inc] = isFileReadable($FQFN); + // Is it readable and at least 50 byte large? Include file sizes < 50 byte are always deprecated + $GLOBALS['inc_readable'][$inc] = ((isFileReadable($FQFN)) && (filesize($FQFN) >= 50)); } // END - if // Return result