[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [KDE-Pastebin] e8b2e5d: Change raw output to text/plain mime
From: Sayak Banerjee <sayakb () kde ! org>
Date: 2011-01-05 19:27:49
Message-ID: 20110105192749.353AEA609B () git ! kde ! org
[Download RAW message or body]
commit e8b2e5decff7a3f95b20eac89b4104c3be55fc14
branch master
Author: Sayak Banerjee <sayakb@kde.org>
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;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic