Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update RunkitTag#sanitized_preamble (#1808)
  • Loading branch information
Zhao-Andy authored and maestromac committed Feb 15, 2019
1 parent 5b2d1ba commit 0b8ab21
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/liquid_tags/runkit_tag.rb
Expand Up @@ -66,13 +66,9 @@ def self.script
end

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

sanitized = ActionView::Base.full_sanitizer.sanitize(markup, tags: [])

raise StandardError, "Runkit tag is invalid" if markup.starts_with? "\""

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

Expand Down

0 comments on commit 0b8ab21

Please sign in to comment.