Skip to content

Commit

Permalink
Merge pull request #20 from garci66/garci66-dataurl
Browse files Browse the repository at this point in the history
Add support for data:text/tml urls
  • Loading branch information
mfrederickson authored May 27, 2017
2 parents 87a96a6 + 168b7fc commit c281930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/iframe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c281930

Please # to comment.