Cannot open files in utf-8 folders via webdav #299

This commit is contained in:
Karel Pičman 2015-03-05 15:38:12 +01:00
parent e1221a6fbd
commit 45e10753d9

View File

@ -1,7 +1,7 @@
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
# Copyright (C) 2011-14 Karel Picman <karel.picman@kontron.com>
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
# Copyright (C) 2011-15 Karel Picman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -46,6 +46,16 @@ module RedmineDmsf
def special_type
nil
end
# Base attribute overriding in order to allow non-ascii characters in path
def path
@path.force_encoding('utf-8')
end
# Base attribute overriding in order to allow non-ascii characters in path
def public_path
@public_path.force_encoding('utf-8')
end
#Generate HTML for Get requests
def html_display