From 7ad6424fc522074e3028de59b29c465fc03cc1f9 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 6 Aug 2008 09:25:45 +0000 Subject: - fread() replaced by file_get_contents(), see comments in #1484880 git-svn-id: https://svn.roundcube.net/trunk@1631 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/html2text.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'roundcubemail/program/lib/html2text.php') diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php index 7d7d9d1f4..af8e936cc 100644 --- a/roundcubemail/program/lib/html2text.php +++ b/roundcubemail/program/lib/html2text.php @@ -274,13 +274,11 @@ class html2text */ function set_html( $source, $from_file = false ) { - $this->html = $source; - if ( $from_file && file_exists($source) ) { - $fp = fopen($source, 'r'); - $this->html = fread($fp, filesize($source)); - fclose($fp); + $this->html = file_get_contents($source); } + else + $this->html = $source; $this->_converted = false; } -- cgit v1.2.3