Skip to content

Commit

Permalink
Merge pull request #5533 from pdudits/issue-5525
Browse files Browse the repository at this point in the history
Handle empty mapping in normalizeRequestURI
  • Loading branch information
BalusC authored Dec 7, 2024
2 parents 0d7d137 + a4f47b4 commit 40c6f0f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ protected String derivePhysicalViewId(FacesContext ctx, String requestViewId, bo
* @since 1.2
*/
protected String normalizeRequestURI(String viewId, String mapping) {
if (mapping.isEmpty()) {
return viewId;
}

boolean logged = false;

while (viewId.startsWith(mapping)) {
Expand Down

0 comments on commit 40c6f0f

Please sign in to comment.