diff options
author | alecpl <alec@alec.pl> | 2011-11-25 18:50:05 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-25 18:50:05 +0000 |
commit | 6a6168619a2d538263eb99247b18154a72e5e298 (patch) | |
tree | fc1748c96b03a48fbbb236eb2b3440187e511f0b /program/steps/addressbook | |
parent | e0960f6365b4b0af314d955847b9422067c83eb2 (diff) |
- Fix handling contact photo url with https:// prefix (#1488202)
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r-- | program/steps/addressbook/func.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 52819c0df..5010e8c22 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -710,7 +710,7 @@ function rcmail_contact_photo($attrib) $RCMAIL->output->set_env('photo_placeholder', $photo_img); unset($attrib['placeholder']); - if (strpos($record['photo'], 'http:') === 0) + if (preg_match('!^https?://!i', $record['photo'])) $photo_img = $record['photo']; else if ($record['photo']) $photo_img = $RCMAIL->url(array('_action' => 'photo', '_cid' => $record['ID'], '_source' => $SOURCE_ID)); |