summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-09-29 18:15:05 +0000
committerthomascube <thomas@roundcube.net>2007-09-29 18:15:05 +0000
commit97bd2c0537bc3edb3751b3020f37e680944ac41c (patch)
tree3845f62069bbfc9ddb67447f07e504f0f455077a /program/include/rcube_shared.inc
parentca2b4ddfcc7a506925c9d5b3a798a4c74147c2e1 (diff)
Filter linked/imported CSS files (#1484056)
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index a5a3ca64e..05fa7a2bc 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -434,6 +434,10 @@ function make_absolute_url($path, $base_url)
{
$host_url = $base_url;
$abs_path = $path;
+
+ // check if path is an absolute URL
+ if (preg_match('/^[fhtps]+:\/\//', $path))
+ return $path;
// cut base_url to the last directory
if (strpos($base_url, '/')>7)