diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-19 03:17:53 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-19 03:17:53 +0100 |
commit | 82b803a304b7c58338130b305a2adae95b0d3e07 (patch) | |
tree | 70b96c624f284d2f07ce5214fbdc2c045ae66bc3 | |
parent | c41b9620532a7bf165164b7135a5af224e61834d (diff) | |
download | rafb-nopaste-82b803a304b7c58338130b305a2adae95b0d3e07.tar.gz rafb-nopaste-82b803a304b7c58338130b305a2adae95b0d3e07.tar.xz rafb-nopaste-82b803a304b7c58338130b305a2adae95b0d3e07.zip |
remove prepareContent, that's now done in pastify
-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; - } } - ?> |