From: Hypolite Petovan Date: Mon, 5 Dec 2016 02:31:28 +0000 (-0500) Subject: Revert adding a leading slash to redir links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e20aed42878635e6ac7cff7ac328b812e96e204;p=friendica.git Revert adding a leading slash to redir links --- diff --git a/include/text.php b/include/text.php index f45dd6391c..cfd9b167d0 100644 --- a/include/text.php +++ b/include/text.php @@ -1187,7 +1187,7 @@ function redir_private_images($a, &$item) } if ((local_user() == $item['uid']) && ($item['private'] != 0) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN)) { - $img_url = '/redir?f=1&quiet=1&url=' . urlencode($mtch[1]) . '&conurl=' . urlencode($item['author-link']); + $img_url = 'redir?f=1&quiet=1&url=' . urlencode($mtch[1]) . '&conurl=' . urlencode($item['author-link']); $item['body'] = str_replace($mtch[0], '[img]' . $img_url . '[/img]', $item['body']); } }