summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-18 05:46:11 +0100
committerByron Jones <glob@mozilla.com>2014-11-18 05:46:11 +0100
commit47da91d22f0799f8eedc160909efbbc6feda0afd (patch)
treeb309fd13e4eb5fcdaa05f697941a6a701c573373 /Bugzilla
parenta50e8fd42e682ac115792677104a467445a1c0ad (diff)
downloadbugzilla-47da91d22f0799f8eedc160909efbbc6feda0afd.tar.gz
bugzilla-47da91d22f0799f8eedc160909efbbc6feda0afd.tar.xz
Bug 1100368: css concatenation breaks data: urls
r=dylan,a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm4
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 . ')';
}