We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5734e5 commit 798ea0cCopy full SHA for 798ea0c
lib/rails/html/scrubbers.rb
@@ -146,7 +146,7 @@ def scrub_attribute(node, attr_node)
146
Loofah::HTML5::Scrub.scrub_attribute_that_allows_local_ref(attr_node)
147
end
148
149
- 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
150
attr_node.remove
151
152
0 commit comments