mirror of
https://github.com/neocities/neocities.git
synced 2025-08-22 09:00:52 +02:00
escape thumbnail path
This commit is contained in:
parent
a270d266c5
commit
08ffda43bc
1 changed files with 1 additions and 1 deletions
|
@ -1725,7 +1725,7 @@ class Site < Sequel::Model
|
|||
|
||||
def thumbnail_url(path, resolution)
|
||||
path[0] = '' if path[0] == '/'
|
||||
"#{THUMBNAILS_URL_ROOT}/#{sharding_dir}/#{values[:username]}/#{path}.#{resolution}.webp"
|
||||
"#{THUMBNAILS_URL_ROOT}/#{sharding_dir}/#{values[:username]}/#{self.class.escape_path(path)}.#{resolution}.webp"
|
||||
end
|
||||
|
||||
def to_rss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue