git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/5.1.0
@@ -31,7 +31,11 @@ module Redmine | |||
next unless url | |||
next if url.starts_with?("/") || url.starts_with?("#") || !url.include?(':') | |||
scheme = URI.parse(url).scheme rescue nil | |||
scheme = begin | |||
URI.parse(url).scheme | |||
rescue | |||
nil | |||
end | |||
next if scheme.blank? | |||
klass = node["class"].presence |
@@ -185,6 +185,5 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase | |||
within('.tribute-container') do | |||
assert page.has_text? "Dave Lopper" | |||
end | |||
end | |||
end |