From 56222d6cfbff79df9906a379610fc625704a8632 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Fri, 25 Oct 2019 13:05:09 -0400 Subject: [PATCH 1/2] Bugfix when password is disabled in config no new paste can be created --- js/privatebin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index d411ebbe..717a3629 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3814,7 +3814,8 @@ jQuery.PrivateBin = (function($, RawDeflate) { */ me.getPassword = function() { - return $passwordInput.val(); + // when password is disabled $passwordInput.val() will return undefined + return $passwordInput.val() || ''; }; /** From 6fc4303acc8691ae25a4a933e256344fe10cec06 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Fri, 25 Oct 2019 13:09:07 -0400 Subject: [PATCH 2/2] Update SRI --- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index d9909343..3378c8f6 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index e3d67732..2b63d113 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +