mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Validate new file names to make sure they are allowed by the file system
This commit is contained in:
parent
037e57b687
commit
4fc777268b
31 changed files with 2717 additions and 1649 deletions
|
@ -191,7 +191,7 @@ public:
|
|||
|
||||
static bool isValidFileSystemName(QString filename) {
|
||||
filename = filename.replace("\\", "/");
|
||||
QRegExp regex("[/:!?\"*<>|]");
|
||||
QRegExp regex("[/:?\"*<>|]");
|
||||
if(filename.contains(regex))
|
||||
return false;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue