From c22537c979027244c87eb0822c910025102f8f20 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 1 Jul 2018 07:18:21 +0000 Subject: [PATCH] fix sending anonymous comments --- .gitignore | 3 ++- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b363a7e0..5070f40b 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ vendor/**/tests vendor/**/build_phar.php !vendor/**/*.php -# Ignore local node modules, unit testing logs, api docs and eclipse project files +# Ignore local node modules, unit testing logs, api docs and IDE project files js/node_modules/ js/test.log tst/log/ @@ -39,3 +39,4 @@ tst/ConfigurationCombinationsTest.php .buildpath .project .externalToolBuilders +.c9 diff --git a/js/privatebin.js b/js/privatebin.js index 1566ea3e..d48e0fbc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4099,7 +4099,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { DiscussionViewer.addComment( comment, CryptTool.decipher(key, password, comment.data), - CryptTool.decipher(key, password, comment.meta.nickname) + comment.meta.nickname ? CryptTool.decipher(key, password, comment.meta.nickname) : '' ); } diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 5741c645..9716ed28 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 613e5a09..b42ceef3 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -54,7 +54,7 @@ if ($QRCODE): - +