Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Windows
pEp for Outlook
Commits
8a14c3a0
Commit
8a14c3a0
authored
May 06, 2021
by
Thomas
Browse files
OUT-789: Take into account files without extension. Remove space.
parent
78a047cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
PEPAttachment.cs
View file @
8a14c3a0
...
...
@@ -1083,8 +1083,15 @@ namespace pEp
try
{
var
fileParts
=
this
.
FileName
.
Split
(
'.'
);
normalizedFileName
=
string
.
Join
(
""
,
new
ArraySegment
<
string
>(
fileParts
,
0
,
fileParts
.
Length
-
1
));
normalizedFileName
+=
" ("
+
counter
++
+
")."
+
fileParts
.
Last
();
if
(
fileParts
.
Length
>
1
)
{
normalizedFileName
=
string
.
Join
(
""
,
new
ArraySegment
<
string
>(
fileParts
,
0
,
fileParts
.
Length
-
1
));
normalizedFileName
+=
"("
+
counter
++
+
")."
+
fileParts
.
Last
();
}
else
{
normalizedFileName
=
this
.
FileName
+
"("
+
counter
++
+
")"
;
}
}
catch
(
Exception
ex
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment