-
-
Notifications
You must be signed in to change notification settings - Fork 301
fix: prevent path traversal (CWE-22) in corpus and data path functions #1342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3aca45d
Initial plan
Copilot 7795c2b
fix: prevent path traversal in get_full_data_path, path_pythainlp_cor…
Copilot 503f2c2
refactor: consolidate path traversal check into _safe_path_join; fix …
Copilot c08e199
refactor: remove path_pythainlp_corpus and get_path_folder_corpus; us…
Copilot 6271e24
refactor: promote _safe_path_join to public safe_path_join in pythain…
Copilot 10e981c
fix: remove duplicate FileNotFoundError guard; update CHANGELOG entry
Copilot cad6cdd
style: apply black formatting; fix flake8 E303 in test_security.py
Copilot 57d2839
Update pythainlp/tag/wangchanberta_onnx.py
bact cde810f
Update pythainlp/tag/wangchanberta_onnx.py
bact a61e4e6
Update pythainlp/tag/wangchanberta_onnx.py
bact 504216d
Update pythainlp/tag/wangchanberta_onnx.py
bact d0ccffb
Update pythainlp/tag/wangchanberta_onnx.py
bact c2881ae
Update pythainlp/tag/wangchanberta_onnx.py
bact c01ad33
Update CHANGELOG for release 5.3.2
bact 54d11e6
Update AGENTS.md about path join
bact File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.