summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-06 22:25:03 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-06 22:25:03 +0100
commitd113733ce06b0edee5a145f14664ee7905962022 (patch)
treed3b2378ae061038ea4d543220232cb1cf42c17fc /src
parentFix bug in html tag escaping (diff)
downloadnheko-d113733ce06b0edee5a145f14664ee7905962022.tar.xz
Don't leak the full file path when sending file
Diffstat (limited to 'src')
-rw-r--r--src/TextInputWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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<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();