Skip to content
Permalink
Browse files

AO3-2808 Add jpeg to SUPPORTED_EXTERNAL_URLS (#3348)

* AO3-2808 Add jpeg to SUPPORTED_EXTERNAL_URLS

* AO3-2808 Added spec tests for all image types and one that makes sure other fail
  • Loading branch information...
hatal175 authored and sarken committed Apr 11, 2019
1 parent 042e1bd commit 882bbac8bdf561ea0a339e762af4dc21c3fd8a33
Showing with 7 additions and 1 deletion.
  1. +1 −1 config/config.yml
  2. +6 −0 spec/models/skin_spec.rb
@@ -332,7 +332,7 @@ SUPPORTED_CSS_KEYWORDS: ["!important", "url"]

# if you include "url" in the SUPPORTED_CSS_KEYWORDS, only urls pointing to this kind of
# resource will be allowed
SUPPORTED_EXTERNAL_URLS: ["jpg", "png", "gif"]
SUPPORTED_EXTERNAL_URLS: ["jpg", "jpeg", "png", "gif"]

# variables for Askimet http://akismet.com/
AKISMET_KEY: '6833ee7298cf'
@@ -50,6 +50,12 @@
li.relationships + li.freeforms:before { content: 'Freeform: '; }
li:before {content: url('http://foo.com/bullet.jpg')}",

"allows whitelisted image extensions" =>
".a { background: url('http://example.com/i.jpg'); }
.b { background: url('http://example.com/i.jpeg'); }
.c { background: url('http://example.com/i.png'); }
.d { background: url('http://example.com/i.gif'); }",

"should allow through properties that are variations on the ones in the shorthand config list" =>
"#main ul.sorting {
background: rgba(120,120,120,1) 5%;

0 comments on commit 882bbac

Please sign in to comment.
You can’t perform that action at this time.