Do not rewrite absolute URLs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
cee941a6a3
commit
106af04355
|
@ -242,8 +242,8 @@ class ThemingDefaults extends \OC_Defaults {
|
||||||
'theming-background-mime' => "'" . $this->config->getAppValue('theming', 'backgroundMime', '') . "'"
|
'theming-background-mime' => "'" . $this->config->getAppValue('theming', 'backgroundMime', '') . "'"
|
||||||
];
|
];
|
||||||
|
|
||||||
$variables['image-logo'] = "'".$this->urlGenerator->getAbsoluteURL($this->getLogo())."'";
|
$variables['image-logo'] = "'".$this->getLogo()."'";
|
||||||
$variables['image-login-background'] = "'".$this->urlGenerator->getAbsoluteURL($this->getBackground())."'";
|
$variables['image-login-background'] = "'".$this->getBackground()."'";
|
||||||
$variables['image-login-plain'] = 'false';
|
$variables['image-login-plain'] = 'false';
|
||||||
|
|
||||||
if ($this->config->getAppValue('theming', 'color', null) !== null) {
|
if ($this->config->getAppValue('theming', 'color', null) !== null) {
|
||||||
|
|
|
@ -298,7 +298,7 @@ class SCSSCacher {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function rebaseUrls($css, $webDir) {
|
private function rebaseUrls($css, $webDir) {
|
||||||
$re = '/url\([\'"]([\.\w?=\/-]*)[\'"]\)/x';
|
$re = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
|
||||||
$subst = 'url(\''.$webDir.'/$1\')';
|
$subst = 'url(\''.$webDir.'/$1\')';
|
||||||
return preg_replace($re, $subst, $css);
|
return preg_replace($re, $subst, $css);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue