projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac017f4
)
ConvertStyle.php
author
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 08:37:18 +0000
(16:37 +0800)
committer
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 08:37:18 +0000
(16:37 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
b3db910
..
4d7eca3
100644
(file)
--- a/
ConvertStyle.php
+++ b/
ConvertStyle.php
@@
-23,8
+23,7
@@
class Pman_Core_ConvertStyle extends Pman
return $url;
}
$ui = parse_url($base);
- // if it starts with '/'...
- // we do not handle ports...
+
if (substr($url,0,2) == '//') {
return $ui['scheme'] .':' . $url;
}
@@
-42,7
+41,7
@@
class Pman_Core_ConvertStyle extends Pman
return $ui['scheme'] .'://'.$ui['host']. '/' . $url;
}
- /// not sure if this will work...
+
return $ui['scheme'] .'://'.$ui['host']. $ui['path'] . '/../'. $url;
}