From 8810b6db0f7ea63313e660203b8519a6ea98e5be Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 10 Aug 2007 12:48:28 -0400 Subject: [PATCH] Check filesize of template includes (#1484409) --- program/include/rcmail_template.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/rcmail_template.inc b/program/include/rcmail_template.inc index 6057f2a..1c40c0e 100644 --- a/program/include/rcmail_template.inc +++ b/program/include/rcmail_template.inc @@ -453,7 +453,7 @@ // include a file case 'include': $path = realpath($this->config['skin_path'].$attrib['file']); - if ($fp = @fopen($path, 'r')) + if (filesize($path) && ($fp = @fopen($path, 'r'))) { $incl = fread($fp, filesize($path)); fclose($fp); -- Gitblit v1.9.1