From kde-commits Wed Jan 05 19:27:49 2011 From: Sayak Banerjee Date: Wed, 05 Jan 2011 19:27:49 +0000 To: kde-commits Subject: [KDE-Pastebin] e8b2e5d: Change raw output to text/plain mime Message-Id: <20110105192749.353AEA609B () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129425572008666 commit e8b2e5decff7a3f95b20eac89b4104c3be55fc14 branch master Author: Sayak Banerjee Date: Thu Jan 6 00:57:37 2011 +0530 Change raw output to text/plain mime diff --git a/show.php b/show.php index 20fd71c..4358063 100644 --- a/show.php +++ b/show.php @@ -192,6 +192,8 @@ if (!empty($row['password']) && !empty($password) && !$exempt) // Is it raw? just dump the code then if ($mode == 'raw') { + header('Content-type: text/plain'); + header('Content-Disposition: inline; filename=\"pastedata\"'); echo $row['data']; exit; }