We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9250229 commit 26a34b1Copy full SHA for 26a34b1
lib/rails/html/scrubbers.rb
@@ -150,7 +150,7 @@ def scrub_attribute(node, attr_node)
150
Loofah::HTML5::Scrub.scrub_attribute_that_allows_local_ref(attr_node)
151
end
152
153
- if Loofah::HTML5::SafeList::SVG_ALLOW_LOCAL_HREF.include?(node.name) && attr_name == "xlink:href" && attr_node.value =~ /^\s*[^#\s].*/m
+ if Loofah::HTML5::SafeList::SVG_ALLOW_LOCAL_HREF.include?(node.name) && attr_name == "xlink:href" && attr_node.value =~ /^\s*[^#].*/m
154
attr_node.remove
155
156
0 commit comments