Skip to content

Commit

Permalink
Improved: Refactor ControlFilter class without functional changes (OF…
Browse files Browse the repository at this point in the history
…BIZ-13213)

Fix a backport bug: isUrlInString in trunk, isUrl in 24.09
  • Loading branch information
JacquesLeRoux committed Feb 28, 2025
1 parent cc22932 commit 8e79be8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void doFilter(HttpServletRequest req, HttpServletResponse resp, FilterCha
}
if (queryString != null) {
queryString = URLDecoder.decode(queryString, "UTF-8");
if (UtilValidate.isUrlInString(queryString)
if (UtilValidate.isUrl(queryString)
|| !SecuredUpload.isValidText(queryString.toLowerCase(), ALLOWEDTOKENS, true)) {
Debug.logError("For security reason this URL is not accepted", MODULE);
throw new RuntimeException("For security reason this URL is not accepted");
Expand Down

0 comments on commit 8e79be8

Please sign in to comment.