diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 06:17:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 06:17:34 +0000 |
commit | bbd24fe350a3bdba18eaa3d1a1d9329fd538260d (patch) | |
tree | de599b228ab12f6c0940f3f7081299292b07bc23 /lib | |
parent | adb9980728c0500046ce623dc023a295b4af21d5 (diff) | |
download | redmine-bbd24fe350a3bdba18eaa3d1a1d9329fd538260d.tar.gz redmine-bbd24fe350a3bdba18eaa3d1a1d9329fd538260d.zip |
Custom field List Link values to URL breaks on entries with spaces (#23067).
git-svn-id: http://svn.redmine.org/redmine/trunk@15539 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/field_format.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index 874220933..0347ca8da 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -15,6 +15,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +require 'uri' + module Redmine module FieldFormat def self.add(name, klass) @@ -212,7 +214,7 @@ module Redmine end end end - url + URI.encode(url) end protected :url_from_pattern |