1
0
Fork 0
forked from gitea/nas

Bump version to v4.1.3 (#25757)

This commit is contained in:
KMY 2023-07-06 23:09:32 +09:00
parent b96be29ae7
commit 82338ded9f
15 changed files with 207 additions and 33 deletions

View file

@ -153,3 +153,10 @@ unless defined?(Seahorse)
end
end
end
# Set our ImageMagick security policy, but allow admins to override it
ENV['MAGICK_CONFIGURE_PATH'] = begin
imagemagick_config_paths = ENV.fetch('MAGICK_CONFIGURE_PATH', '').split(File::PATH_SEPARATOR)
imagemagick_config_paths << Rails.root.join('config', 'imagemagick').expand_path.to_s
imagemagick_config_paths.join(File::PATH_SEPARATOR)
end