File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
flow-tests/vaadin-spring-tests
test-spring-security-flow-urlmapping
src/main/java/com/vaadin/flow/spring/flowsecurityurlmapping Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1818 <maven .deploy.skip>true</maven .deploy.skip>
1919 <component .version>24.3.13</component .version>
2020 <nimbus-jose-jwt .version>9.39.3</nimbus-jose-jwt .version>
21+ <versions .java-security-toolkit>1.2.1</versions .java-security-toolkit>
2122 </properties >
2223
2324 <dependencyManagement >
6465 <type >pom</type >
6566 <scope >import</scope >
6667 </dependency >
68+ <dependency >
69+ <groupId >io.github.pixee</groupId >
70+ <artifactId >java-security-toolkit</artifactId >
71+ <version >${versions.java-security-toolkit} </version >
72+ </dependency >
6773 </dependencies >
6874 </dependencyManagement >
6975
Original file line number Diff line number Diff line change 5050 <type >test-jar</type >
5151 <scope >test</scope >
5252 </dependency >
53+ <dependency >
54+ <groupId >io.github.pixee</groupId >
55+ <artifactId >java-security-toolkit</artifactId >
56+ </dependency >
5357 </dependencies >
5458
5559 <build >
Original file line number Diff line number Diff line change 11package com .vaadin .flow .spring .flowsecurityurlmapping ;
22
3+ import static io .github .pixee .security .jakarta .PathValidator .validateDispatcherPath ;
34import jakarta .servlet .FilterChain ;
45import jakarta .servlet .ServletException ;
56import jakarta .servlet .http .HttpServletRequest ;
@@ -40,8 +41,8 @@ protected void doFilterInternal(HttpServletRequest request,
4041 HttpServletResponse response ,
4142 FilterChain filterChain )
4243 throws ServletException , IOException {
43- request .getRequestDispatcher (request .getRequestURI ()
44- .substring (URL_MAPPING .length ()))
44+ request .getRequestDispatcher (validateDispatcherPath ( request .getRequestURI ()
45+ .substring (URL_MAPPING .length ())))
4546 .forward (request , response );
4647 }
4748 });
You can’t perform that action at this time.
0 commit comments