From 4e965197640dd7ca5e5f2372f5073638999ef663 Mon Sep 17 00:00:00 2001 From: meiqinyan Date: Fri, 4 Apr 2025 05:39:26 +0800 Subject: [PATCH] Allow XSLT files --- models/site.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/models/site.rb b/models/site.rb index ac39d8de..6baefccf 100644 --- a/models/site.rb +++ b/models/site.rb @@ -22,6 +22,7 @@ class Site < Sequel::Model application/vnd.ms-fontobject application/vnd.ms-opentype application/xml + application/xslt+xml audio/midi font/otf font/sfnt @@ -49,14 +50,15 @@ class Site < Sequel::Model text/plain text/tsv text/xml + text/xsl } VALID_EXTENSIONS = %w{ - html htm txt text css js jpg jpeg png apng 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 avif xcf epub gltf bin webmanifest knowl atom opml rdf map gpg resolveHandle pls yaml yml toml osdx mjs cjs ts glb py + html htm txt text css js jpg jpeg png apng gif svg md markdown eot ttf woff woff2 json geojson csv tsv mf ico pdf asc key pgp xml xsl xslt mid midi manifest otf webapp less sass rss kml dae obj mtl scss webp avif xcf epub gltf bin webmanifest knowl atom opml rdf map gpg resolveHandle pls yaml yml toml osdx mjs cjs ts glb py } VALID_EDITABLE_EXTENSIONS = %w{ - html htm txt js css scss md manifest less webmanifest xml json opml rdf svg gpg pgp resolveHandle pls yaml yml toml osdx mjs cjs ts py rss + html htm txt js css scss md manifest less webmanifest xml xsl xslt json opml rdf svg gpg pgp resolveHandle pls yaml yml toml osdx mjs cjs ts py rss } MINIMUM_PASSWORD_LENGTH = 5