Make mathjax.config.js the standard filename. Fixes #1340.

This commit is contained in:
Bart Kamphorst
2018-12-28 22:07:07 +01:00
parent 58225c7c20
commit 006dd36078
2 changed files with 4 additions and 7 deletions
+3 -3
View File
@@ -152,15 +152,15 @@ module Precious
end
end
get %r{/(edit|create)/custom\.(js|css)} do
get %r{/(edit|create)/(custom|mathjax\.config\.)\.(js|css)} do
forbid('Changing this resource is not allowed.')
end
post %r{/(delete|rename|edit|create)/custom\.(js|css)} do
post %r{/(delete|rename|edit|create)/(custom|mathjax\.config\.)\.(js|css)} do
forbid('Changing this resource is not allowed.')
end
post %r{/revert/custom\.(js|css)/.*/.*} do
post %r{/revert/(custom|mathjax\.config\.)\.(js|css)/.*/.*} do
forbid('Changing this resource is not allowed.')
end