From 14bb4106a0a36904364fd6e389a89381b2002744 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 19:18:14 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConvertStyle.php b/ConvertStyle.php index 61af9313..1f7b466f 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -19,7 +19,7 @@ class Pman_Core_ConvertStyle extends Pman function relPath($base, $url) { - print_r($url);exit; + if (preg_match('/^(http|https|mailto):/',$url)) { return $url; } @@ -33,7 +33,7 @@ class Pman_Core_ConvertStyle extends Pman if (substr($url,0,1) == '/') { return $ui['scheme'] .'://'.$ui['host']. $url; } - + print_r($url);exit; if (substr($ui['path'], -1) == '/') { return $ui['scheme'] .'://'.$ui['host']. $ui['path'] . $url; } -- 2.39.2