From d113733ce06b0edee5a145f14664ee7905962022 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
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 283616fc1..ce0c7cb86 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -639,7 +639,7 @@ TextInputWidget::openFileSelection()
 
         QSharedPointer<QFile> 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();
 
-- 
GitLab