mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 03:15:21 +02:00
make filename regex less restrictive
This commit is contained in:
parent
9af7579b85
commit
2faa67c68d
1 changed files with 1 additions and 1 deletions
|
@ -2250,7 +2250,7 @@ bool DomainServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
// check the file extension to see what kind of file this is
|
// check the file extension to see what kind of file this is
|
||||||
// to make sure we handle this filetype for a content restore
|
// to make sure we handle this filetype for a content restore
|
||||||
auto dispositionValue = QString(firstFormData.first.value("Content-Disposition"));
|
auto dispositionValue = QString(firstFormData.first.value("Content-Disposition"));
|
||||||
auto formDataFilenameRegex = QRegExp("filename=\"(\\S+)\"");
|
auto formDataFilenameRegex = QRegExp("filename=\"(.+)\"");
|
||||||
auto matchIndex = formDataFilenameRegex.indexIn(dispositionValue);
|
auto matchIndex = formDataFilenameRegex.indexIn(dispositionValue);
|
||||||
|
|
||||||
QString uploadedFilename = "";
|
QString uploadedFilename = "";
|
||||||
|
|
Loading…
Reference in a new issue