Webdav: Invalid handling of files with '[' or ']' in file name #498
This commit is contained in:
parent
6b415536fa
commit
1e277bbf38
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user