summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/url.rb2
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