fix mail attachment and photo permissions. issue #202
This commit is contained in:
parent
857e13e9b8
commit
bb995f1bb6
@ -13,6 +13,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
|||||||
$ret = array('success' => false);
|
$ret = array('success' => false);
|
||||||
|
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
$observer_hash = get_observer_hash();
|
||||||
|
|
||||||
if(! $recipient) {
|
if(! $recipient) {
|
||||||
$ret['message'] = t('No recipient provided.');
|
$ret['message'] = t('No recipient provided.');
|
||||||
@ -148,8 +149,8 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
|||||||
|
|
||||||
$match = null;
|
$match = null;
|
||||||
$images = null;
|
$images = null;
|
||||||
if(preg_match_all("/\[zmg\](.*?)\[\/zmg\]/",((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$match))
|
if(preg_match_all("/\[zmg\=([0-9]*)x([0-9]*)\](.*?)\[\/zmg\]/",((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$match))
|
||||||
$images = $match[1];
|
$images = $match[3];
|
||||||
|
|
||||||
$match = false;
|
$match = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user