aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-30 01:52:58 -0700
committerfriendica <info@friendica.com>2012-05-30 01:52:58 -0700
commite5a988f0b58f3a2319863580817dc22545e2c498 (patch)
treec07cb5fc649689561895cd3abdb506bcd78357d5 /include
parent88a0d6a1d53a93fa0d43591f85b72a8a72c13d53 (diff)
downloadvolse-hubzilla-e5a988f0b58f3a2319863580817dc22545e2c498.tar.gz
volse-hubzilla-e5a988f0b58f3a2319863580817dc22545e2c498.tar.bz2
volse-hubzilla-e5a988f0b58f3a2319863580817dc22545e2c498.zip
fix private photos that also have a size specification
Diffstat (limited to 'include')
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index c6d852fe7..8324d4bdd 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2933,8 +2933,8 @@ function fix_private_photos($s,$uid, $item = null, $cid = 0) {
logger('fix_private_photos', LOGGER_DEBUG);
$site = substr($a->get_baseurl(),strpos($a->get_baseurl(),'://'));
- if(preg_match("/\[img\](.*?)\[\/img\]/is",$s,$matches)) {
- $image = $matches[1];
+ if(preg_match("/\[img(.*?)\](.*?)\[\/img\]/is",$s,$matches)) {
+ $image = $matches[2];
logger('fix_private_photos: found photo ' . $image, LOGGER_DEBUG);
if(stristr($image , $site . '/photo/')) {
$replace = false;