Browse Source

Add a missing single quote in assertion message

pull/22956/head
Johnny Lim 6 years ago committed by Juergen Hoeller
parent
commit
9a6ce66bd9
  1. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java

2
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java

@ -98,7 +98,7 @@ public class ResourceUrlEncodingFilter extends GenericFilterBean { @@ -98,7 +98,7 @@ public class ResourceUrlEncodingFilter extends GenericFilterBean {
String lookupPath = pathHelper.getLookupPathForRequest(this);
this.indexLookupPath = requestUri.lastIndexOf(lookupPath);
Assert.isTrue(this.indexLookupPath != -1, () ->
"Failed to find lookupPath '" + lookupPath + "' within requestUri '" + requestUri + ". " +
"Failed to find lookupPath '" + lookupPath + "' within requestUri '" + requestUri + "'. " +
"Does the path have invalid encoded characters " +
"for characterEncoding=" + getRequest().getCharacterEncoding() + "?");
this.prefixLookupPath = requestUri.substring(0, this.indexLookupPath);

Loading…
Cancel
Save