$fn = $this->target;
+
$isIE = preg_match('#msie [0-9.]+#i', isset($_SERVER['HTTP_USER_AGENT']) ? isset($_SERVER['HTTP_USER_AGENT']) : '');
if (empty($filename)) {
$filename = $sfn;
}
+
+ $filename = preg_replace('/[^\x00-\x7E]/', '', $filename);
header('Content-length: '. filesize($fn));
// if ($type != 'inline') {
//var_dump($fn, $mt); exit;
header('Content-type: '. $mt);
-
// even though we have done a file_exists above - it still errors out here occausionally.
$fh = @fopen($fn, 'rb');
//fpassthru($fh);