fix(http): handle static directory paths safely - #4053
Open
nik-7-alt wants to merge 10 commits into
Open
Conversation
…cron-nil-logger-sql-mock-3813 fix(cron): join in-flight jobs on Stop and skip jobs with no logger
…ng (gofr-dev#3864) v2.3.1 declares `using: node20`, so every Linting Party run emits the Node.js 20 deprecation warning. Upstream fixed it in 0c7f19c ("chore: run on the node24 runtime"), but no release carries it yet, so pin the SHA. Revert to a tag once ls-lint cuts a release with the node24 runtime. Co-authored-by: Aryan Mehrotra <aryanmehrotra2000@gmail.com>
… 18 (gofr-dev#3870) (gofr-dev#3871) Node 18 "Hydrogen" reached end-of-life on 2025-04-30 and receives no security patches, including for the bundled OpenSSL and undici. The prod and stage website workflows build and deploy gofr.dev — they run `yarn install --frozen-lockfile` and `yarn refresh-data` against the network while holding the GAR deployment key and `packages: write`. Targets 24.x rather than the 22.x the issue suggested: v22 has been in maintenance since 2025-10-21 while v24 is the Active LTS through 2028-04-30. Verified `yarn install --frozen-lockfile` is green on node:24-alpine against the website's current lockfile. Both files changed together so prod and stage don't drift. Co-authored-by: Aryan Mehrotra <aryanmehrotra2000@gmail.com>
…ke using-migrations self-contained (gofr-dev#3818, gofr-dev#3816) (gofr-dev#3821)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
isWithinDirectory.Breaking Changes (if applicable):
Additional Information:
filepath.Cleanandfilepath.ToSlashfor platform-independent path normalization.gofmt.go test ./pkg/gofr/http -run Test_isRestrictedFile -vTest_isRestrictedFilepassed successfully.0000) not being enforced equivalently on Windows.Checklist:
gofmt.