Mercurial > hg > svcore
diff rdf/RDFImporter.h @ 1852:a454c7477b4f
Be more cautious about firing up an RDF file parser to identify a document - don't do it at all if the document is not apparently text
author | Chris Cannam |
---|---|
date | Thu, 30 Apr 2020 14:46:07 +0100 |
parents | 6d09d68165a4 |
children |
line wrap: on
line diff
--- a/rdf/RDFImporter.h Thu Apr 30 14:45:24 2020 +0100 +++ b/rdf/RDFImporter.h Thu Apr 30 14:46:07 2020 +0100 @@ -62,8 +62,10 @@ NotRDF }; - static RDFDocumentType identifyDocumentType(QString url); + static RDFDocumentType identifyDocumentType(QUrl url); + static bool isPlausibleDocumentOfAnyKind(QUrl url); + protected: RDFImporterImpl *m_d; };