mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
- Validate new file names to make sure they are allowed by the file system
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user