diff options
Diffstat (limited to 'paste/get.php')
-rw-r--r-- | paste/get.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/get.php b/paste/get.php index 33d8aae..735822b 100644 --- a/paste/get.php +++ b/paste/get.php @@ -43,8 +43,10 @@ if (!is_subclass_of($config['storage'], 'StorageEngine')) die('Invalid config'); } -if (isset($_GET['p'])) +if (isset($_GET['p'])) { + header("Content-type: text/html; charset=utf-8"); die($config['storage']->getContent($_GET['p'])); +} header('Location: ' . $config['site_domain'] . $config['site_path']); ?> |