From 1da42861baef9b0445f8684c59308515f1c4deb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Sun, 14 Nov 2010 17:48:40 +0100 Subject: [PATCH] fix showinframe ogg files (documents tool) --- main/document/document.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/document/document.inc.php b/main/document/document.inc.php index a182226dc6..eb08ba6883 100755 --- a/main/document/document.inc.php +++ b/main/document/document.inc.php @@ -125,7 +125,7 @@ function create_document_link($www, $title, $path, $filetype, $size, $visibility $ext = strtolower($ext[sizeof($ext) - 1]); // "htmlfiles" are shown in a frameset - if ($ext == 'htm' || $ext == 'html' || $ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'pdf' || $ext == 'swf' || $ext == 'mp3' || ($ext == 'svg' && api_support_svg())) { + if ($ext == 'htm' || $ext == 'html' || $ext == 'gif' || $ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'pdf' || $ext == 'swf' || $ext == 'mp3' || ($ext== 'ogg' || $ext== 'ogx' || $ext== 'oga' || $ext== 'ogv' && api_support_svg()) ||($ext == 'svg' && api_support_svg())) { $url = 'showinframes.php?'.api_get_cidreq().'&file='.$url_path.$req_gid; } else { // url-encode for problematic characters (we may not call them dangerous characters...)