From 8810b6db0f7ea63313e660203b8519a6ea98e5be Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 10 Aug 2007 16:48:28 +0000 Subject: Check filesize of template includes (#1484409) --- program/include/rcmail_template.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/include/rcmail_template.inc b/program/include/rcmail_template.inc index 6057f2af3..1c40c0e96 100644 --- a/program/include/rcmail_template.inc +++ b/program/include/rcmail_template.inc @@ -453,7 +453,7 @@ class rcmail_template extends rcube_html_page // 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); -- cgit v1.2.3