projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1d0d8
)
Images.php
author
edward
<edward@roojs.com>
Wed, 5 Oct 2016 05:45:57 +0000
(13:45 +0800)
committer
edward
<edward@roojs.com>
Wed, 5 Oct 2016 05:45:57 +0000
(13:45 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
5097c85
..
e4a5958
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-338,8
+338,9
@@
class Pman_Core_Images extends Pman
$baseURL = $ff->Pman_Images['public_baseURL'];
preg_match_all('/<img\s+[^>]+>/i',$html, $result);
- print_r($result);exit;
+
$matches = array_unique($result[0]);
+ print_r($matches);exit;
foreach($matches as $img) {
$imatch = array();
preg_match_all('/(width|height|src)="([^"]*)"/i',$img, $imatch);