From 56222d6cfbff79df9906a379610fc625704a8632 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Fri, 25 Oct 2019 13:05:09 -0400 Subject: [PATCH] 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() || ''; }; /**