Forgot a break in a switch when rendering attachments.
This commit is contained in:
		| @@ -171,6 +171,7 @@ class AttachmentListItem extends Widget | |||||||
|                     switch ($this->attachment->mimetype) { |                     switch ($this->attachment->mimetype) { | ||||||
|                     case 'text/plain': |                     case 'text/plain': | ||||||
|                         $this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath())); |                         $this->element('div', ['class'=>'e-content plaintext'], file_get_contents($this->attachment->getPath())); | ||||||
|  |                         break; | ||||||
|                     case 'text/html': |                     case 'text/html': | ||||||
|                         if (!empty($this->attachment->filename) |                         if (!empty($this->attachment->filename) | ||||||
|                                 && (GNUsocial::isAjax() || common_config('attachments', 'show_html'))) { |                                 && (GNUsocial::isAjax() || common_config('attachments', 'show_html'))) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user