Merge pull request #477 from fermionic/private-image-failure
Private image failure
This commit is contained in:
commit
75b92b52d8
|
@ -373,8 +373,8 @@ function item_post(&$a) {
|
||||||
|
|
||||||
$match = null;
|
$match = null;
|
||||||
|
|
||||||
if((! $preview) && preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) {
|
if((! $preview) && preg_match_all("/\[img([\=0-9x]*?)\](.*?)\[\/img\]/",$body,$match)) {
|
||||||
$images = $match[1];
|
$images = $match[2];
|
||||||
if(count($images)) {
|
if(count($images)) {
|
||||||
foreach($images as $image) {
|
foreach($images as $image) {
|
||||||
if(! stristr($image,$a->get_baseurl() . '/photo/'))
|
if(! stristr($image,$a->get_baseurl() . '/photo/'))
|
||||||
|
|
Loading…
Reference in a new issue