From e43e7d973a42c232e9210b0b2ff6fa340d72ccb0 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 29 Jan 2017 16:49:47 -0800 Subject: [PATCH] Whitelist webp images --- models/site.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/site.rb b/models/site.rb index 493297d3..5380d9a4 100644 --- a/models/site.rb +++ b/models/site.rb @@ -32,10 +32,11 @@ class Site < Sequel::Model text/cache-manifest application/rss+xml application/x-elc + image/webp } VALID_EXTENSIONS = %w{ - html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff woff2 json geojson csv tsv mf ico pdf asc key pgp xml mid midi manifest otf webapp less sass rss kml dae obj mtl scss + html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff woff2 json geojson csv tsv mf ico pdf asc key pgp xml mid midi manifest otf webapp less sass rss kml dae obj mtl scss webp } VALID_EDITABLE_EXTENSIONS = %w{