From ff73e02cced0abf176a5a7e8660860f6280da6fe Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 06 Aug 2008 05:25:45 -0400
Subject: [PATCH] - fread() replaced by file_get_contents(), see comments in #1484880

---
 program/lib/html2text.php |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/program/lib/html2text.php b/program/lib/html2text.php
index 7d7d9d1..af8e936 100644
--- a/program/lib/html2text.php
+++ b/program/lib/html2text.php
@@ -274,13 +274,11 @@
      */
     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;
     }

--
Gitblit v1.9.1