properly escape screenshot path

This commit is contained in:
Kyle Drake 2024-09-19 18:26:55 -05:00
parent 4347642ac6
commit 47edba24dc

View file

@ -1663,7 +1663,7 @@ class Site < Sequel::Model
path[0] = '' if path[0] == '/'
out = ''
out = 'https://neocities.org' if ENV['RACK_ENV'] == 'development'
out+"#{base_screenshots_url}/#{path}.#{resolution}.webp"
out+"#{base_screenshots_url}/#{self.class.escape_path path}.#{resolution}.webp"
end
def base_thumbnails_path(name=username)