events, continued. Also better regex matching accounting for empty elements
This commit is contained in:
@@ -78,7 +78,7 @@ function message_post(&$a) {
|
||||
|
||||
$match = null;
|
||||
|
||||
if(preg_match_all("/\[img\](.+?)\[\/img\]/",$body,$match)) {
|
||||
if(preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) {
|
||||
$images = $match[1];
|
||||
if(count($images)) {
|
||||
foreach($images as $image) {
|
||||
|
||||
Reference in New Issue
Block a user