diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index 7656d82..13d6b51 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -66,7 +66,7 @@ module BoxesHelper when Hash content_tag('iframe', '', :src => url_for(content)) when String - if content =~ /^https?:\/\// + if content.split("\n").size == 1 and content =~ /^https?:\/\// content_tag('iframe', '', :src => content) else content -- libgit2 0.21.2