summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-08-10 16:48:28 +0000
committerthomascube <thomas@roundcube.net>2007-08-10 16:48:28 +0000
commit8810b6db0f7ea63313e660203b8519a6ea98e5be (patch)
tree37c092429ba9cf5d5e6a2e2d6fc801192378beae /program
parentb8e65ce39b5330fb99371c9dc039f8d19f39477d (diff)
Check filesize of template includes (#1484409)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail_template.inc2
1 files changed, 1 insertions, 1 deletions
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);