mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
properly escape screenshot path
This commit is contained in:
parent
4347642ac6
commit
47edba24dc
1 changed files with 1 additions and 1 deletions
|
@ -1663,7 +1663,7 @@ class Site < Sequel::Model
|
||||||
path[0] = '' if path[0] == '/'
|
path[0] = '' if path[0] == '/'
|
||||||
out = ''
|
out = ''
|
||||||
out = 'https://neocities.org' if ENV['RACK_ENV'] == 'development'
|
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
|
end
|
||||||
|
|
||||||
def base_thumbnails_path(name=username)
|
def base_thumbnails_path(name=username)
|
||||||
|
|
Loading…
Add table
Reference in a new issue