Skip to content
Snippets Groups Projects
Commit d113733c authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Don't leak the full file path when sending file

parent 1b039d0b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment