diff options
author | alecpl <alec@alec.pl> | 2011-11-28 09:03:27 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-28 09:03:27 +0000 |
commit | 77449d011b2367a9f3d7bb179534aa09865aa26e (patch) | |
tree | 20a299715c627cecdc2f7247056dde120748c6a7 /program/steps/addressbook | |
parent | 2a3e02769d2014038675a5d8ddf18d1dba87bf2f (diff) |
- Applied fixes from trunk up to r5498
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 2f1fbb70f..cb5cc63dc 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -705,7 +705,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)); |