From 8e8482355baa55a5c9e3cb3553eecf5a733e2897 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 23 Oct 2012 17:14:50 -0700 Subject: more heavy lifting --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index c0907b556..181984d33 100644 --- a/mod/item.php +++ b/mod/item.php @@ -528,7 +528,7 @@ function item_post(&$a) { $attachments = ''; $match = false; - if(preg_match_all('/(\[attachment\]([0-9]+)\[\/attachment\])/',$body,$match)) { + if(preg_match_all('/(\[attachment\](.*?)\[\/attachment\])/',$body,$match)) { foreach($match[2] as $mtch) { $r = q("SELECT `hash`,`filename`,`filesize`,`filetype` FROM `attach` WHERE `uid` = %d AND `hash` = '%s' LIMIT 1", intval($profile_uid), -- cgit v1.2.3