projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
06e2d91
)
Images.php
author
edward
<edward@roojs.com>
Wed, 5 Oct 2016 06:16:52 +0000
(14:16 +0800)
committer
edward
<edward@roojs.com>
Wed, 5 Oct 2016 06:16:52 +0000
(14:16 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
83151ec
..
6d7b4f6
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-355,10
+355,7
@@
class Pman_Core_Images extends Pman
if (empty($attr['src'])) {
continue;
}
if (empty($attr['src'])) {
continue;
}
- print_r($baseURL);
- echo "\n";
- print_r($attr['src']);
- exit;
+
if (0 !== strpos($attr['src'], $baseURL)) {
// it starts with our 'new' baseURL?
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
if (0 !== strpos($attr['src'], $baseURL)) {
// it starts with our 'new' baseURL?
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
@@
-369,7
+366,10
@@
class Pman_Core_Images extends Pman
continue;
}
// what about mailto or data... - just ignore?? for images...
continue;
}
// what about mailto or data... - just ignore?? for images...
-
+ print_r($baseURL);
+ echo "\n";
+ print_r($attr['src']);
+ exit;
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );