mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -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 )
|
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 );
|
const QRegularExpressionMatch base64Match = sRx.match( path );
|
||||||
if ( !base64Match.hasMatch() )
|
if ( !base64Match.hasMatch() )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user