Skip to content

Commit

Permalink
fixed infinite loop in IsSafe check
Browse files Browse the repository at this point in the history
  • Loading branch information
flrdv committed Apr 26, 2024
1 parent 4b67a06 commit b9a8470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions router/inbuilt/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func isSafe(path string) bool {
if dot < len(path)-1 && path[dot+1] == '.' {
return false
}

path = path[dot+1:]
}

return true
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package indigo

const Version = "v0.16.2"
const Version = "v0.16.3"

0 comments on commit b9a8470

Please sign in to comment.