Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PIM Messagelib
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIM
PIM Messagelib
Commits
47d804c3
Commit
47d804c3
authored
4 years ago
by
Laurent Montel
Browse files
Options
Downloads
Patches
Plain Diff
Replace \n by '_' in filename. otherwise mail will be broken
Bug found by David
parent
9cb79992
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
messagecore/src/attachment/attachmentfromurljob.cpp
+1
-0
1 addition, 0 deletions
messagecore/src/attachment/attachmentfromurljob.cpp
with
1 addition
and
0 deletions
messagecore/src/attachment/attachmentfromurljob.cpp
+
1
−
0
View file @
47d804c3
...
...
@@ -75,6 +75,7 @@ void AttachmentFromUrlJob::Private::transferJobResult(KJob *job)
qCDebug
(
MESSAGECORE_LOG
)
<<
"Mimetype is"
<<
mimeTypeName
;
QString
fileName
=
q
->
url
().
fileName
();
fileName
.
replace
(
QLatin1Char
(
'\n'
),
QLatin1Char
(
'_'
));
if
(
fileName
.
isEmpty
())
{
QMimeDatabase
db
;
const
auto
mimeType
=
db
.
mimeTypeForName
(
mimeTypeName
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment