Skip to content

Commit 813c8d5

Browse files
committed
Additional fix for jakartaee#453
1 parent 9cacfc5 commit 813c8d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/src/main/java/jakarta/servlet/ServletRequest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2023 Oracle and/or its affiliates and others.
2+
* Copyright (c) 1997, 2024 Oracle and/or its affiliates and others.
33
* All rights reserved.
44
* Copyright 2004 The Apache Software Foundation
55
*
@@ -410,6 +410,11 @@ default void setCharacterEncoding(Charset encoding) {
410410
* The difference between this method and {@link ServletContext#getRequestDispatcher} is that this method can take a
411411
* relative path.
412412
*
413+
* <p>
414+
* The provided {@code path} parameter is canonicalized as per <a href=
415+
* "https://jakarta.ee/specifications/servlet/6.0/jakarta-servlet-spec-6.0.html#uri-path-canonicalization">Servlet 6.0,
416+
* 3.5.2</a> before being used to match resources.
417+
*
413418
* @param path a <code>String</code> specifying the pathname to the resource. If it is relative, it must be relative
414419
* against the current servlet.
415420
*

0 commit comments

Comments
 (0)