From: Edward Date: Wed, 19 Feb 2014 11:18:14 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=14bb4106a0a36904364fd6e389a89381b2002744 ConvertStyle.php --- 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; }