diff options
author | alecpl <alec@alec.pl> | 2008-08-06 09:25:45 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-08-06 09:25:45 +0000 |
commit | ff73e02cced0abf176a5a7e8660860f6280da6fe (patch) | |
tree | 3470b8e0da1e975d6df3017a8cd3384b9b9f5137 /program/lib | |
parent | f0726b94b3e7073240b0aca1af4ee52d3920ea27 (diff) |
- fread() replaced by file_get_contents(), see comments in #1484880
Diffstat (limited to 'program/lib')
-rw-r--r-- | 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 7d7d9d1f4..af8e936cc 100644 --- a/program/lib/html2text.php +++ b/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; } |