-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Enhance filename validation #23386
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
Open
cocopaw
wants to merge
21
commits into
qbittorrent:master
Choose a base branch
from
cocopaw:enhance_filename_validation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Enhance filename validation #23386
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d55c5fa
Refactor isValidName. Enahnce toValidFileName
cocopaw 4f46011
Improve torrent file path sanitization in TorrentCreator
cocopaw 7b94f38
Enhance toValidPath to match toValidFileName sanitization
cocopaw 5c5d6e5
Refactor to reduce code duplication. Rename isValidName to isValidFil…
cocopaw 425d72e
Enhance "." check and remove toValidPath
cocopaw 5c9ea79
Minor formatting changes
cocopaw 7fbd058
Fix CON_1CON bug
cocopaw 34b4ebb
Remove *Internal from isValidFileName/toValidFileName
cocopaw cc22407
Reinstate toValidPath
cocopaw ccc47cd
Update src/base/utils/fs.cpp
cocopaw 2ff23a6
Move Path::isValid() to Utils::Fs::isValidPath
cocopaw 4c6dde4
Rewrite Utils::Fs::isValidPath
cocopaw ce6dba5
Chocobo1 review requests
cocopaw 2327d43
Rewrite Utils::Fs::toValidPath
cocopaw bdd88de
Remove Utils::Fs::isValidFileName from TorrentsController::renameFile…
cocopaw 90a1973
Silence unused parameter warning in isDriveLetterPath (non-Windows pl…
cocopaw c1fc482
Fix Path::isValid() failing on "/"
cocopaw af9d8ac
Add ":" checking in OSX
cocopaw 4371723
Use 'Q_OS_MACOS' instead of 'Q_OS_OSX' (depricated)
cocopaw b573f84
Chocobo1 review changes
cocopaw 1eec288
Fix CI error "isReservedCharacter not all control paths return a value"
cocopaw 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
Some comments aren't visible on the classic Files Changed page.
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
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.