From 56222d6cfbff79df9906a379610fc625704a8632 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Fri, 25 Oct 2019 13:05:09 -0400 Subject: [PATCH 1/4] 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 d411ebb..717a362 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/4] 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 d990934..3378c8f 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 e3d6773..2b63d11 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - + From 00a9e36c59b35eb0b4a9daaad170b470b9b5e5dd Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 26 Oct 2019 06:01:24 +0200 Subject: [PATCH 3/4] incrementing version --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 6bf0f5a..af3e1e1 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ * @link https://github.com/PrivateBin/PrivateBin * @copyright 2012 Sébastien SAUVAGE (sebsauvage.net) * @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License - * @version 1.3 + * @version 1.3.1 */ // change this, if your php files and data is outside of your webservers document root From 7255cd29a73496e68f12a926ac8948063179db21 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 26 Oct 2019 06:04:21 +0200 Subject: [PATCH 4/4] documenting change --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b19b290..23f2df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # PrivateBin version history * **1.4 (not yet released)** + * FIXED: Password disabling option (#527) * **1.3.1 (2019-09-22)** * ADDED: Translation for Bulgarian (#455) * CHANGED: Improved mobile UI - obscured send button and hard to click shortener button (#477)