projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77aac94
)
fix image checking
author
Alan
<alan@roojs.com>
Wed, 12 Jan 2022 08:22:18 +0000
(16:22 +0800)
committer
Alan
<alan@roojs.com>
Wed, 12 Jan 2022 08:22:18 +0000
(16:22 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
327fa8c
..
039ec02
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-468,10
+468,10
@@
class Pman_Core_Images extends Pman
{
$url = $dom;
if (!is_string($url)) {
- $url = $dom->getAttribute(
$src
);
+ $url = $dom->getAttribute(
'src'
);
}
$umatch = false;
- if(!preg_match('#/(Images|Images/Thumb/[a-z0-9]+|Images/Download)/([0-9]+)/(.*)$#', $
attr_
url, $umatch)) {
+ if(!preg_match('#/(Images|Images/Thumb/[a-z0-9]+|Images/Download)/([0-9]+)/(.*)$#', $url, $umatch)) {
return $url;
}
$id = $umatch[2];