Skip to content
Permalink
Browse files

Merge pull request #4225 from mzazrivec/escape_text_and_tooltip_in_tr…

…eebuilders_root

Escape special chars in tooltip & text of TreeBuilder's root
(cherry picked from commit c94908f)

https://bugzilla.redhat.com/show_bug.cgi?id=1598532
  • Loading branch information...
martinpovolny authored and simaishi committed Jun 29, 2018
1 parent 1e7953c commit 0058a4b5aa4700b5245b75a24fa82b60111ed0b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/presenters/tree_builder.rb
@@ -175,7 +175,7 @@ def add_to_sandbox
end

def add_root_node(nodes)
root = nodes.first.merge!(root_options)
root = nodes.first.merge!(%i(text tooltip).each_with_object(root_options) { |key, hsh| hsh[key] = ERB::Util.html_escape(hsh[key]) })
if root[:image]
root[:image] = ActionController::Base.helpers.image_path(root[:image])
else

0 comments on commit 0058a4b

Please sign in to comment.
You can’t perform that action at this time.