Accept - in mime types

This commit is contained in:
Nyall Dawson 2024-11-27 07:08:00 +10:00
parent c8b8358f1b
commit 4a873a3670
No known key found for this signature in database
GPG Key ID: 4C61673F0BF197FC

View File

@ -45,7 +45,7 @@ void QgsAbstractContentCacheBase::onRemoteContentFetched( const QString &, bool
bool QgsAbstractContentCacheBase::parseBase64DataUrl( const QString &path, QString *mimeType, QString *data )
{
const thread_local QRegularExpression sRx( QStringLiteral( "^data:([a-zA-Z0-9+]*\\/[a-zA-Z0-9+]*?)(?:;(base64|utf8))?,(.*)$" ) );
const thread_local QRegularExpression sRx( QStringLiteral( "^data:([a-zA-Z0-9+\\-]*\\/[a-zA-Z0-9+\\-]*?)(?:;(base64|utf8))?,(.*)$" ) );
const QRegularExpressionMatch base64Match = sRx.match( path );
if ( !base64Match.hasMatch() )
return false;