Skip to content

Commit

Permalink
Handle empty mapping in normalizeRequestURI
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Dudits <patrik.dudits@payara.fish>
  • Loading branch information
pdudits committed Nov 5, 2024
1 parent 294f871 commit a4f47b4
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 a4f47b4

Please sign in to comment.