From 97bd2c0537bc3edb3751b3020f37e680944ac41c Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sat, 29 Sep 2007 14:15:05 -0400
Subject: [PATCH] Filter linked/imported CSS files (#1484056)

---
 program/include/rcube_shared.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index a5a3ca6..05fa7a2 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -434,6 +434,10 @@
 {
   $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)

--
Gitblit v1.9.1