mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Don't leak the full file path when sending file
This commit is contained in:
parent
1b039d0b16
commit
d113733ce0
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ TextInputWidget::openFileSelection()
|
||||||
|
|
||||||
QSharedPointer<QFile> file{new QFile{fileName, this}};
|
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_->related = {};
|
||||||
input_->closeReply();
|
input_->closeReply();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue