From e0de9e8239ce44db52d2bb8f538f03140c925aa3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 13 May 2013 21:19:47 +0200 Subject: [PATCH] Fixed support for absolute URLs --- wcfsetup/install/files/lib/data/style/ActiveStyle.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/data/style/ActiveStyle.class.php b/wcfsetup/install/files/lib/data/style/ActiveStyle.class.php index 0798f9da0f..3c44e8d95c 100644 --- a/wcfsetup/install/files/lib/data/style/ActiveStyle.class.php +++ b/wcfsetup/install/files/lib/data/style/ActiveStyle.class.php @@ -26,6 +26,10 @@ class ActiveStyle extends DatabaseObjectDecorator { * @return string */ public function getImage($image) { + if (preg_match('~^https?://~', $image)) { + return $image; + } + if ($this->imagePath && file_exists(WCF_DIR.$this->imagePath.$image)) { return WCF::getPath().$this->imagePath.$image; } -- 2.20.1