Skip to content

Commit

Permalink
file uri fix was placed in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
davydotcom committed Aug 22, 2018
1 parent c787972 commit a584e89
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -61,10 +61,11 @@ class AssetPipelineFilter extends OncePerRequestFilter {
if(fileUri == '' || fileUri.endsWith('/')) {
fileUri += indexFile
}
fileUri = AssetHelper.normalizePath(fileUri) //JETTY Security bug, we MUST prevent reverse
if(fileUri.startsWith('/')) {
manifestPath = fileUri.substring(1) //Omit forward slash
}
fileUri = AssetHelper.normalizePath(fileUri) //JETTY Security bug, we MUST prevent reverse traversal
traversal
fileUri = manifest?.getProperty(manifestPath, manifestPath)


Expand Down

0 comments on commit a584e89

Please sign in to comment.