From 82b803a304b7c58338130b305a2adae95b0d3e07 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 19 Feb 2010 03:17:53 +0100 Subject: remove prepareContent, that's now done in pastify --- paste/include/storage/StorageEngine.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/paste/include/storage/StorageEngine.php b/paste/include/storage/StorageEngine.php index b0030d0..8cf697c 100644 --- a/paste/include/storage/StorageEngine.php +++ b/paste/include/storage/StorageEngine.php @@ -44,19 +44,5 @@ abstract class StorageEngine $ipAddr = $_SERVER["REMOTE_ADDR"]; return sha1($name . $ipAddr . $config['token_salt']); } - - public function prepareContent($name, $baseUrl, $content) - { - $content = preg_replace("/=\{this-paste-url\}/", - $baseUrl . '/' . $name, $content); - - $content = preg_replace("/=\{remove-paste-url\}/", $baseUrl - . '/' . 'remove.php?id=' . $name - . '&t=' . $this->generateToken($name), - $content); - - return $content; - } } - ?> -- cgit v1.2.3