fix permissions for uploaded images with size specified
This commit is contained in:
parent
7ae1e4620d
commit
f445ed47df
|
@ -373,8 +373,8 @@ function item_post(&$a) {
|
|||
|
||||
$match = null;
|
||||
|
||||
if((! $preview) && preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) {
|
||||
$images = $match[1];
|
||||
if((! $preview) && preg_match_all("/\[img([\=0-9x]*)\](.*?)\[\/img\]/",$body,$match)) {
|
||||
$images = $match[2];
|
||||
if(count($images)) {
|
||||
foreach($images as $image) {
|
||||
if(! stristr($image,$a->get_baseurl() . '/photo/'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user