Webdav: Invalid handling of files with '[' or ']' in file name #498

This commit is contained in:
Karel Picman 2016-02-04 09:36:49 +01:00
parent 6b415536fa
commit 1e277bbf38

View File

@ -115,6 +115,13 @@ module RedmineDmsf
end
end
# Escape URL string
def url_format(resource)
# Additionally escape square brackets, otherwise files with
# file name like file[1].pdf are not visible in some WebDAV clients
URI.encode(super, '[]')
end
end
end
end