Skip to content

Commit

Permalink
fixed bug in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Sep 17, 2024
1 parent d615249 commit 56c74e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 56c74e2

Please sign in to comment.