text/plain was missing
This commit is contained in:
parent
3f0c7c23d2
commit
a1c8a49430
@ -282,7 +282,7 @@ class IDF_Wiki_ResourceRevision extends Pluf_Model
|
|||||||
return sprintf('<img src="%s" alt="%s" />', $url, $resource->title);
|
return sprintf('<img src="%s" alt="%s" />', $url, $resource->title);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('#^text/(xml|html|sgml|javascript|ecmascript|css)$#', $resource->mime_type)) {
|
if (preg_match('#^text/(plain|xml|html|sgml|javascript|ecmascript|css)$#', $resource->mime_type)) {
|
||||||
return sprintf('<iframe src="%s" alt="%s"></iframe>', $url, $resource->title);
|
return sprintf('<iframe src="%s" alt="%s"></iframe>', $url, $resource->title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user