You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2022/03/19 14:27:18 UTC

[incubator-ponymail-foal] 01/02: if undefined, turn into blank string

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 952d7f7bd74367b501d47a6903671ba6f75eb161
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Mar 19 15:26:55 2022 +0100

    if undefined, turn into blank string
---
 webui/js/source/primer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index ad8bb8d..377f91a 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -130,7 +130,7 @@ function parseURL(state) {
     // Are we initiating a search?
     if (query || (month && !month.match(/^\d\d\d\d-\d+$/))) { // single-month isn't a search, but any other date marker is
         state.search = true;
-        state.query = decodeURIComponent(query);
+        state.query = decodeURIComponent(query||"");
         state.date = month;
     }
     // If hitting the refresh button, don't refresh preferences, just do the search.