From e646729b2d5a569afee8547406f1c2f47b516eb5 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 15 Aug 2015 21:39:08 +0200 Subject: [PATCH] fixing regressions from cherrypicking --- cfg/conf.ini | 1 - js/zerobin.js | 4 ++-- lib/zerobin.php | 3 ++- tpl/page.html | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cfg/conf.ini b/cfg/conf.ini index ef7a178a..4169c1e1 100644 --- a/cfg/conf.ini +++ b/cfg/conf.ini @@ -53,7 +53,6 @@ never = 0 1year = "1 year" never = "Never" - [traffic] ; time limit between calls from the same IP address in seconds ; Set this to 0 to disable rate limiting. diff --git a/js/zerobin.js b/js/zerobin.js index bcd86fdb..96ed2356 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -335,7 +335,7 @@ function send_data() { $('div#pastelink').html('Your paste is ' + url + ' (Hit CTRL+C to copy)'); $('div#deletelink').html('Delete link'); - $('div#pasteresult').show(); + $('div#pasteresult').removeClass('hidden'); selectText('pasteurl'); // We pre-select the link so that the user only has to CTRL+C the link. setElementText($('div#cleartext'), $('textarea#message').val()); @@ -409,7 +409,7 @@ function stateExistingPaste() { else { $('button#clonebutton').removeClass('hidden'); } - $('button#rawtextbutton').show(); + $('button#rawtextbutton').removeClass('hidden'); $('div#expiration').addClass('hidden'); $('div#burnafterreadingoption').addClass('hidden'); diff --git a/lib/zerobin.php b/lib/zerobin.php index 821ff749..17efa4fa 100644 --- a/lib/zerobin.php +++ b/lib/zerobin.php @@ -372,7 +372,7 @@ private function _delete($dataid, $deletetoken) private function _read($dataid) { // Is this a valid paste identifier? - if (preg_match('\A[a-f\d]{16}\z', $dataid)) + if (preg_match('#\A[a-f\d]{16}\z#', $dataid)) { // Check that paste exists. if ($this->_model()->exists($dataid)) @@ -452,6 +452,7 @@ private function _view() $key; } + RainTPL::$path_replace = false; $page = new RainTPL; // we escape it here because ENT_NOQUOTES can't be used in RainTPL templates $page->assign('CIPHERDATA', htmlspecialchars($this->_data, ENT_NOQUOTES)); diff --git a/tpl/page.html b/tpl/page.html index c278b439..ecddbb4e 100644 --- a/tpl/page.html +++ b/tpl/page.html @@ -57,17 +57,16 @@

{$VERSION}

- -