diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/attachmentlist.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index c6261dea5..43f836e15 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -330,6 +330,15 @@ class Attachment extends AttachmentListItem $this->out->element('param', array('name' => 'autoStart', 'value' => 1)); $this->out->elementEnd('object'); break; + + case 'text/html': + if ($this->attachment->filename) { + // Locally-uploaded HTML. Scrub and display inline. + $this->showHtmlFile($this->attachment); + break; + } + // Fall through to default. + default: $this->showFallback(); } |