From d113733ce06b0edee5a145f14664ee7905962022 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 6 Feb 2020 22:25:03 +0100 Subject: [PATCH] Don't leak the full file path when sending file --- src/TextInputWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index 283616fc..ce0c7cb8 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -639,7 +639,7 @@ TextInputWidget::openFileSelection() QSharedPointer file{new QFile{fileName, this}}; - emit uploadMedia(file, format, fileName, input_->related); + emit uploadMedia(file, format, QFileInfo(fileName).fileName(), input_->related); input_->related = {}; input_->closeReply();