text/plain was missing

This commit is contained in:
Thomas Keller 2011-12-06 02:18:59 +01:00
parent 3f0c7c23d2
commit a1c8a49430

View File

@ -282,7 +282,7 @@ class IDF_Wiki_ResourceRevision extends Pluf_Model
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);
}