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 <[email protected]>
  • Loading branch information
pdudits authored and Pandrex247 committed Nov 7, 2024
1 parent 9a2c130 commit 7f217fb
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 7f217fb

Please sign in to comment.