From ab86d27d3390b0388bbd92f123adf71321faa492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Thu, 21 Jul 2016 08:55:19 +0200 Subject: Don't allow `.ogg` as a valid video extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `.ogg` is for music files. Signed-off-by: Rémy Coutable --- config/initializers/mime_types.rb | 2 +- doc/markdown/markdown.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index cd449b65818..3e553120205 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -11,4 +11,4 @@ Mime::Type.register_alias "text/html", :md Mime::Type.register "video/mp4", :mp4, [], [:m4v, :mov] Mime::Type.register "video/webm", :webm -Mime::Type.register "video/ogg", :ogv, [], [:ogg] +Mime::Type.register "video/ogg", :ogv diff --git a/doc/markdown/markdown.md b/doc/markdown/markdown.md index d407eec2494..2bbe4b2a36e 100644 --- a/doc/markdown/markdown.md +++ b/doc/markdown/markdown.md @@ -286,7 +286,7 @@ Task lists can only be created in descriptions, not in titles. Task item state c Image tags with a video extension are automatically converted to a video player. -The valid video extensions are `.mp4`, `.m4v`, `.mov`, `.webm`, `.ogv`, and `.ogg`. +The valid video extensions are `.mp4`, `.m4v`, `.mov`, `.webm`, and `.ogv`. Here's a sample video: -- cgit v1.2.1