File tree Expand file tree Collapse file tree
spring-webflux/src/main/java/org/springframework/web/reactive/resource
spring-webmvc/src/main/java/org/springframework/web/servlet/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,10 +76,6 @@ else if (location instanceof ClassPathResource classPathResource) {
7676 }
7777 else if (location instanceof ContextResource contextResource ) {
7878 path = contextResource .getPathWithinContext ();
79- if ("/" .equals (path )) {
80- logger .warn ("Resource location '" + location + "' is considered unsafe " +
81- "and should not be used as it provides access to the root servlet context." );
82- }
8379 }
8480 else if (location instanceof UrlResource ) {
8581 path = location .getURL ().toExternalForm ();
Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ else if (location instanceof ClassPathResource classPathResource) {
7777 }
7878 else if (location instanceof ContextResource contextResource ) {
7979 path = contextResource .getPathWithinContext ();
80- if ("/" .equals (path )) {
81- logger .warn ("Resource location '" + location + "' is considered unsafe " +
82- "and should not be used as it provides access to the root servlet context." );
83- }
8480 }
8581 else if (location instanceof UrlResource ) {
8682 path = location .getURL ().toExternalForm ();
You can’t perform that action at this time.
0 commit comments