diff options
author | Byron Jones <glob@mozilla.com> | 2014-11-18 05:46:11 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-11-18 05:46:11 +0100 |
commit | 47da91d22f0799f8eedc160909efbbc6feda0afd (patch) | |
tree | b309fd13e4eb5fcdaa05f697941a6a701c573373 | |
parent | a50e8fd42e682ac115792677104a467445a1c0ad (diff) | |
download | bugzilla-47da91d22f0799f8eedc160909efbbc6feda0afd.tar.gz bugzilla-47da91d22f0799f8eedc160909efbbc6feda0afd.tar.xz |
Bug 1100368: css concatenation breaks data: urls
r=dylan,a=glob
-rw-r--r-- | Bugzilla/Template.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 7ce1be72b..26ef37585 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -541,7 +541,9 @@ sub _css_url_rewrite { # rewrite relative urls as the unified stylesheet lives in a different # directory from the source $url =~ s/(^['"]|['"]$)//g; - return $url if substr($url, 0, 1) eq '/'; + if (substr($url, 0, 1) eq '/' || substr($url, 0, 5) eq 'data:') { + return 'url(' . $url . ')'; + } return 'url(../../' . dirname($source) . '/' . $url . ')'; } |