From 00ed153bee1758c80db5ca440c67db2c1ab4d171 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 19 Feb 2010 11:20:54 +0100 Subject: fixed unicode issues --- paste/get.php | 4 +++- paste/include/pastify.inc | 1 + paste/index.html | 4 ++-- paste/paste.php | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'paste') 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']); ?> diff --git a/paste/include/pastify.inc b/paste/include/pastify.inc index 328c1bf..8103a7d 100644 --- a/paste/include/pastify.inc +++ b/paste/include/pastify.inc @@ -55,6 +55,7 @@ function PastifyText($text, $language, $desc, $get_url, $remove_url) + Pasted code - $desc diff --git a/paste/index.html b/paste/index.html index f6e480c..2b618ea 100644 --- a/paste/index.html +++ b/paste/index.html @@ -1,12 +1,12 @@ - Paste your code + -
+ diff --git a/paste/paste.php b/paste/paste.php index 3c7891e..6dba5c0 100644 --- a/paste/paste.php +++ b/paste/paste.php @@ -63,7 +63,7 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) } else { - $language = 'Plain Text'; + $language = 'text'; } // Add a description if available -- cgit v1.2.3
Language: