Commit 1b76cfe4 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

URLize: Avoid urlized attachments to be rendered by browser

parent 29c66ae8
......@@ -15358,6 +15358,7 @@ sub do_attach {
# view a file
$param->{'file'} = $doc;
$param->{'bypass'} = 'asis';
print "Content-Disposition: attachment\n";
## File type
if ($in{'file'} =~ /\.(\w+)$/) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment