diff options
Diffstat (limited to 'paste')
-rw-r--r-- | paste/include/storage/StorageEngine.php | 14 |
1 files changed, 0 insertions, 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; - } } - ?> |