mirror of
https://github.com/neocities/neocities.git
synced 2025-08-26 19:03:26 +02:00
fix for % in filenames
This commit is contained in:
parent
690f2f3c80
commit
a270d266c5
4 changed files with 70 additions and 2 deletions
|
@ -1229,7 +1229,8 @@ class Site < Sequel::Model
|
|||
|
||||
# https://practicingruby.com/articles/implementing-an-http-file-server?u=dc2ab0f9bb
|
||||
def scrubbed_path(path='')
|
||||
path ||= ''
|
||||
path = path.to_s
|
||||
|
||||
clean = []
|
||||
|
||||
parts = path.to_s.split '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue