Don't show or preview text/html attachments
htmLawed cleans stuff out properly, but there's no very good way right now to show text/html attachments, since everything gets jumbled up with our own CSS etc. Best would be an iframe or just a new tab or so.
This commit is contained in:
@@ -160,7 +160,7 @@ class OembedPlugin extends Plugin
|
||||
case 'rich':
|
||||
case 'video':
|
||||
case 'link':
|
||||
if (!empty($oembed->html)) {
|
||||
if (!empty($oembed->html) && common_config('attachments', 'show_html')) {
|
||||
require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php';
|
||||
$config = array(
|
||||
'safe'=>1,
|
||||
|
Reference in New Issue
Block a user