summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/helpers')
-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 4177bf23e..0cc149c3b 100644
--- a/lib/redmine/helpers/url.rb
+++ b/lib/redmine/helpers/url.rb
@@ -23,7 +23,7 @@ module Redmine
def uri_with_safe_scheme?(uri, schemes = ['http', 'https', 'ftp', 'mailto', nil])
# URLs relative to the current document or document root (without a protocol
# separator, should be harmless
- return true unless uri.include? ":"
+ return true unless uri.to_s.include? ":"
# Other URLs need to be parsed
schemes.include? URI.parse(uri).scheme