Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
0f73fcbb
Unverified
Commit
0f73fcbb
authored
Mar 07, 2020
by
IKEDA Soji
Committed by
GitHub
Mar 07, 2020
Browse files
Merge pull request #900 from ikedas/bug_urlize_with_merge by ikedas
Some bugs related to urlize mode
parents
3721115e
1b76cfe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
0f73fcbb
...
...
@@ -15346,6 +15346,7 @@ sub do_attach {
# view a file
$param->{'file'} = $doc;
$param->{'bypass'} = 'asis';
print "Content-Disposition: attachment\n";
## File type
if ($in{'file'} =~ /\.(\w+)$/) {
...
...
src/lib/Sympa/Message.pm
View file @
0f73fcbb
...
...
@@ -1443,10 +1443,8 @@ sub _merge_msg {
}
# Check for attchment-part, which should not be changed
my
$cdisposition
=
$entity
->
head
->
mime_attr
('
Content-Disposition
');
if
(
$cdisposition
and
lc
(
$cdisposition
)
eq
'
attachment
')
{
$log
->
syslog
('
notice
',
'
Detected part with Content-Disposition. Not changing it!
');
if
('
attachment
'
eq
lc
(
$entity
->
head
->
mime_attr
('
Content-Disposition
')
//
''))
{
return
$entity
;
}
...
...
@@ -2109,9 +2107,8 @@ sub _urlize_parts {
## Clean up Message-ID and preventing double percent encoding.
my
$dir1
=
Sympa::Tools::Text::
encode_filesystem_safe
(
$message_id
);
#XXX$dir1 = '/' . $dir1;
unless
(
mkdir
"
$expl
/
$dir1
",
0775
)
{
$log
->
syslog
('
err
',
'
Unable to create urlized directory %s/%s
',
unless
(
-
d
"
$expl
/
$dir1
"
or
mkdir
"
$expl
/
$dir1
",
0775
)
{
$log
->
syslog
('
err
',
'
Unable to create urlized directory %s/%s: %m
',
$expl
,
$dir1
);
return
0
;
}
...
...
Write
Preview
Supports
Markdown
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