Skip to content

Commit

Permalink
chore: fix typo on the directory traversal vulnerability message
Browse files Browse the repository at this point in the history
refs #1028
  • Loading branch information
Jacksgong committed May 18, 2018
1 parent e8dd772 commit ff240b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ public static String findFilename(FileDownloadConnection connection, String url)
filename = FileDownloadUtils.generateFileName(url);
} else if (filename.contains("../")) {
throw new FileDownloadSecurityException(FileDownloadUtils.formatString(
"The filename [%s] from the response is not allowable, because it is " +
"contains '../', which can raise the directory traversal vulnerability",
"The filename [%s] from the response is not allowable, because it contains "
+ "'../', which can raise the directory traversal vulnerability",
filename));
}

Expand Down

0 comments on commit ff240b8

Please sign in to comment.