Skip to content

Commit

Permalink
Fix runkit's strict preamble (forem#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
glebec authored and maestromac committed Mar 7, 2019
1 parent 825aa9b commit 5626fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/liquid_tags/runkit_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def self.script
end

def sanitized_preamble(markup)
raise StandardError, "Runkit tag is invalid" if markup.include? "\""
raise StandardError, "Runkit tag is invalid" if markup.include? "\">"

ActionView::Base.full_sanitizer.sanitize(markup, tags: [])
end
Expand Down

0 comments on commit 5626fbe

Please sign in to comment.