diff --git a/Rocksolid_Light/rocksolid/attachment.php b/Rocksolid_Light/rocksolid/attachment.php index 2fab9ce..54a6125 100644 --- a/Rocksolid_Light/rocksolid/attachment.php +++ b/Rocksolid_Light/rocksolid/attachment.php @@ -1,22 +1,21 @@ header); +ob_clean(); if (!$message) { header ("HTTP/1.0 404 Not Found"); echo "The Attachment doesn't exists"; } else { - header("Content-Disposition: inline; filename=". - $message->header->content_type_name[$attachment]); + header("Content-Disposition: inline; filename=" . $message->header->content_type_name[$attachment]); header("Content-type: ".$message->header->content_type[$attachment]); message_show("",$id,$attachment,$message); -} -?> +} \ No newline at end of file diff --git a/Rocksolid_Light/rocksolid/config.inc.php b/Rocksolid_Light/rocksolid/config.inc.php index ccf568e..45e0703 100644 --- a/Rocksolid_Light/rocksolid/config.inc.php +++ b/Rocksolid_Light/rocksolid/config.inc.php @@ -252,5 +252,4 @@ if ((isset($group)) && (isset($group_config))) { // load the english language definitions first because some of the other // definitions are incomplete include ("lang/english.lang"); -include ($file_language); -?> +include ($file_language); \ No newline at end of file diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index cf3490c..34f15f6 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -24,18 +24,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ ?> - - '; // Copy MID to clipboard (requires js) + echo ' '; ?> -

id); ?>

 copy mid '; } return $return; -} +} \ No newline at end of file diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index faf211c..1c987db 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -2392,4 +2392,4 @@ function delete_message_from_overboard($config_name, $group, $messageid) file_put_contents($cachefile, serialize($cached_overboard)); } } -} +} \ No newline at end of file diff --git a/Rocksolid_Light/spoolnews/files.php b/Rocksolid_Light/spoolnews/files.php index c7ae9ab..a794718 100644 --- a/Rocksolid_Light/spoolnews/files.php +++ b/Rocksolid_Light/spoolnews/files.php @@ -9,17 +9,13 @@ if (isset($_COOKIE['tzo'])) { } else { $offset = $CONFIG['timezone']; } - if ((isset($_REQUEST['command']) && $_REQUEST['command'] == 'Show') && password_verify($CONFIG['thissitekey'], $_REQUEST['key'])) { $getfilename = $spooldir . '/upload/' . $_REQUEST['showfile']; - $getfh = fopen($getfilename, "rb"); - $getfile = fread($getfh, filesize($getfilename)); - fclose($getfh); + ob_clean(); header('Content-type: ' . $_REQUEST['contenttype']); header('Content-disposition: filename="' . $_REQUEST['showfilename'] . '"'); file_put_contents($logfile, "\n" . format_log_date() . " Requesting: " . $_REQUEST['showfile'], FILE_APPEND); - echo file_get_contents($getfilename); - //echo $getfile; + readfile($getfilename); exit(0); } $title .= ' - Browse files'; @@ -140,5 +136,4 @@ function display_user_files($user, $offset) $i ++; } echo ''; -} -?> +} \ No newline at end of file