mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Accept - in mime types
This commit is contained in:
parent
c8b8358f1b
commit
4a873a3670
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user