ConvertStyle.php
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 10:00:59 +0000 (18:00 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 10:00:59 +0000 (18:00 +0800)
ConvertStyle.php

index b4612d4..02bd2e8 100644 (file)
@@ -124,7 +124,7 @@ class Pman_Core_ConvertStyle extends Pman
                     // import from file , must use absolutely url
                     $this->jerr('Please use the absolutely url for link href!');
                 }
-                if (!empty($url)) {
+                if (!empty($url) && !preg_match("/^http(.*)$/", $href, $matches)) {
                     // import from URL
                     $href = $this->relPath($url,  $href);
                 }