1
0
Fork 0

Standards

This commit is contained in:
Hypolite Petovan 2016-12-07 23:11:53 -05:00
parent 2b75ad5e0a
commit e29023dc8c

View file

@ -1182,7 +1182,7 @@ function redir_private_images($a, &$item)
$cnt = preg_match_all('|\[img\](http[^\[]*?/photo/[a-fA-F0-9]+?(-[0-9]\.[\w]+?)?)\[\/img\]|', $item['body'], $matches, PREG_SET_ORDER); $cnt = preg_match_all('|\[img\](http[^\[]*?/photo/[a-fA-F0-9]+?(-[0-9]\.[\w]+?)?)\[\/img\]|', $item['body'], $matches, PREG_SET_ORDER);
if ($cnt) { if ($cnt) {
foreach ($matches as $mtch) { foreach ($matches as $mtch) {
if(strpos($mtch[1], '/redir') !== false) { if (strpos($mtch[1], '/redir') !== false) {
continue; continue;
} }