From 56c74e2695c173f6848818947488a1897b7f8dd6 Mon Sep 17 00:00:00 2001 From: Alex Bogdanovski Date: Tue, 17 Sep 2024 10:21:27 +0300 Subject: [PATCH] fixed bug in previous commit --- .../com/erudika/scoold/controllers/QuestionsController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java index f6d117e1..3eefcc0f 100755 --- a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java +++ b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java @@ -452,8 +452,9 @@ private String getQueryWithPossibleExtension(String query, HttpServletRequest re if (StringUtils.isBlank(queryExt) || queryExt.startsWith("*")) { queryExt = StringUtils.trimToEmpty(HttpUtils.getCookieValue(req, "questions-type-filter")); } + queryExt = Utils.urlDecode(queryExt); if (!queryExt.isBlank()) { - return query.equals("*") ? queryExt : query + " AND (" + Utils.urlDecode(queryExt) + ")"; + return query.equals("*") ? queryExt : query + " AND (" + queryExt + ")"; } return query; }