From 9ae7bc815200ad34d855e16bee8775c581e5fd29 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 26 Nov 2017 03:44:37 +0000 Subject: Make robust Redmine::Helpers::URL#uri_with_safe_scheme? (#27114) Patch by okkez. git-svn-id: http://svn.redmine.org/redmine/trunk@17035 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine/helpers/url.rb b/lib/redmine/helpers/url.rb index 9dd8a7114..8e13ab291 100644 --- a/lib/redmine/helpers/url.rb +++ b/lib/redmine/helpers/url.rb @@ -27,7 +27,7 @@ module Redmine # Other URLs need to be parsed schemes.include? URI.parse(uri).scheme - rescue URI::InvalidURIError + rescue URI::Error false end end -- cgit v1.2.3