projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd1c774
)
DataObjects/Images.php
author
edward
<edward@roojs.com>
Wed, 6 Sep 2017 03:29:40 +0000
(11:29 +0800)
committer
edward
<edward@roojs.com>
Wed, 6 Sep 2017 03:29:40 +0000
(11:29 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
ff2f725
..
f1ae557
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-768,7
+768,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
function toBase64()
{
- if(!preg_match(
$pattern, $subject
)){
+ if(!preg_match(
'/^image\//', $this->mimetype
)){
return false;
}