diff options
author | Go MAEDA <maeda@farend.jp> | 2017-11-26 03:44:37 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2017-11-26 03:44:37 +0000 |
commit | 9ae7bc815200ad34d855e16bee8775c581e5fd29 (patch) | |
tree | 5d43ed781ef880964f18eaf5774672ef6f9c6c1d /lib | |
parent | 092cadb0ccc6028e277c84ea35c24df59d002b26 (diff) | |
download | redmine-9ae7bc815200ad34d855e16bee8775c581e5fd29.tar.gz redmine-9ae7bc815200ad34d855e16bee8775c581e5fd29.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/url.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |