diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-09-01 23:02:03 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-09-01 23:18:39 -0400 |
commit | efcfd209ef737f4dbe99401df282e7a341176ea7 (patch) | |
tree | 4e91a9f7483ca4d8c4d85e524ac6b2140bb59b89 /classes | |
parent | f86fed357c07f1c1d2c633e8c2c730f205187e1a (diff) |
Check "Files" of type 'application/xhtml+xml' for oEmbed in addition to just text/html
Diffstat (limited to 'classes')
-rw-r--r-- | classes/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php index f4d0a3a48..96a4de6e8 100644 --- a/classes/File.php +++ b/classes/File.php @@ -78,7 +78,7 @@ class File extends Memcached_DataObject $file_id = $x->insert(); if (isset($redir_data['type']) - && ('text/html' === substr($redir_data['type'], 0, 9)) + && (('text/html' === substr($redir_data['type'], 0, 9) || 'application/xhtml+xml' === substr($redir_data['type'], 0, 21))) && ($oembed_data = File_oembed::_getOembed($given_url))) { File_oembed::saveNew($oembed_data, $file_id); } |