events, continued. Also better regex matching accounting for empty elements
This commit is contained in:
parent
33fe26ecb0
commit
e2f1540f25
7 changed files with 43 additions and 43 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue