diff --git a/app/models/iframe.rb b/app/models/iframe.rb index 07ceac1..c61c473 100644 --- a/app/models/iframe.rb +++ b/app/models/iframe.rb @@ -46,7 +46,7 @@ def self.form_attributes end def url_must_exist - if config['url'].empty? || (config['url'] =~ /[a-z]+\:\/\/.+/).nil? + if config['url'].empty? || (config['url'] =~ /[a-z]+\:\/\/.+/).nil? && !config['url'].starts_with?("data:text/html") errors.add(:url, 'an absolute Url must be specified') end end