diff options
Diffstat (limited to 'inc/io.php')
-rw-r--r-- | inc/io.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/io.php b/inc/io.php index e1c4d1eb9..ff318bd67 100644 --- a/inc/io.php +++ b/inc/io.php @@ -36,7 +36,7 @@ function io_sweepNS($id){ * * @author Andreas Gohr <andi@splitbrain.org> */ -function io_readFile($file){ +function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == '.gz'){ @@ -45,7 +45,11 @@ function io_readFile($file){ $ret = join('',file($file)); } } - return cleanText($ret); + if($clean){ + return cleanText($ret); + }else{ + return $ret; + } } /** |