aboutsummaryrefslogtreecommitdiff
path: root/lib/events/eventcontent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-23 20:43:02 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-03-23 21:49:22 +0900
commit9ba481f2c8e7f1db6144ece7119d8cc314c57bc5 (patch)
tree960d6605a770019b6bc4d918ef965141d91dac69 /lib/events/eventcontent.h
parent01d9f7b3f1785034503497798fb732ee6ee5fba3 (diff)
downloadlibquotient-9ba481f2c8e7f1db6144ece7119d8cc314c57bc5.tar.gz
libquotient-9ba481f2c8e7f1db6144ece7119d8cc314c57bc5.zip
Room::downloadFile(): Tighten URL validations
Check the URL before passing over to Connection::downloadFile(), not only the file name.
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r--lib/events/eventcontent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 0588c0e2..ab31a75d 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -94,6 +94,8 @@ namespace QMatrixClient
FileInfo(const QUrl& u, const QJsonObject& infoJson,
const QString& originalFilename = {});
+ bool isValid() const;
+
void fillInfoJson(QJsonObject* infoJson) const;
/**