File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
vertx-core/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,14 @@ For example, if the request URI was `a/b/c/page.html?param1=abc¶m2=xyz
187187
188188Then the path would be `/a/b/c/page.html`
189189
190+ Note that `HttpServerRequest#path()` returns the raw path as it was sent by the client.
191+ This value may contain repeated separators such as `//` or path traversal markers like `..`.
192+
193+ If you are using Vert.x Web and need to perform security-sensitive checks or route
194+ comparisons based on a normalized version of the path, prefer using
195+ `RoutingContext#normalizedPath()` instead. Vert.x Web applies additional
196+ transformations to ensure the path is canonicalized before matching routes.
197+
190198==== Request query
191199
192200Use {@link io.vertx.core.http.HttpServerRequest#query} to return the query part of the URI
You can’t perform that action at this time.
0 commit comments