mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
cssfilter: Don't strip_www from absolute URLs.
This was preventing using images from www.redditstatic.com.
This commit is contained in:
@@ -233,7 +233,7 @@ def valid_url(prop,value,report):
|
||||
try:
|
||||
u = urlparse(url)
|
||||
valid_scheme = u.scheme and u.scheme in valid_url_schemes
|
||||
valid_domain = strip_www(u.netloc) in g.allowed_css_linked_domains
|
||||
valid_domain = u.netloc in g.allowed_css_linked_domains
|
||||
except ValueError:
|
||||
u = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user