Improve argument name

It's used in the code for escaping only parts of URLs
This commit is contained in:
Basti 2024-03-05 16:57:15 +01:00
parent 3512c0f7c9
commit 771ff97cfe
Signed by: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -431,9 +431,9 @@ module RemoteStorage
end
end
def escape(url)
def escape(str)
# We want spaces to turn into %20 and slashes to stay slashes
CGI::escape(url).gsub('+', '%20').gsub('%2F', '/')
CGI::escape(str).gsub('+', '%20').gsub('%2F', '/')
end
def redis