Skip to content

Commit 0a4e47e

Browse files
authored
Merge pull request #2222 from Nithish-Anumula/master
String Index Out of Bounce Exception Fix when deployed on Azure
2 parents e4f0b07 + b1c5cc5 commit 0a4e47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/ui/AbstractSwaggerResourceResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private String webjar(String path) {
6767
* @return the string
6868
*/
6969
private String path(String webjar, String path) {
70-
if (path.startsWith(webjar)) {
70+
if (path.startsWith(webjar) && path.length() > webjar.length()) {
7171
path = path.substring(webjar.length() + 1);
7272
}
7373
return path;

0 commit comments

Comments
 (0)