From f86233a57358ce3b8af194ba929b94343f02b0be Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Thu, 14 Mar 2024 13:49:59 +0000 Subject: [PATCH] Additional fix for #453 --- api/src/main/java/jakarta/servlet/ServletRequest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/jakarta/servlet/ServletRequest.java b/api/src/main/java/jakarta/servlet/ServletRequest.java index 62f800cf8..c261a2f50 100644 --- a/api/src/main/java/jakarta/servlet/ServletRequest.java +++ b/api/src/main/java/jakarta/servlet/ServletRequest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2023 Oracle and/or its affiliates and others. + * Copyright (c) 1997, 2024 Oracle and/or its affiliates and others. * All rights reserved. * Copyright 2004 The Apache Software Foundation * @@ -410,6 +410,11 @@ default void setCharacterEncoding(Charset encoding) { * The difference between this method and {@link ServletContext#getRequestDispatcher} is that this method can take a * relative path. * + *

+ * The provided {@code path} parameter is canonicalized as per Servlet 6.0, + * 3.5.2 before being used to match resources. + * * @param path a String specifying the pathname to the resource. If it is relative, it must be relative * against the current servlet. *