Code: Select all
$url = $serendipity['baseURL'] . preg_replace("#$path_quoted#", '', $cur['permalink']);
The line should be:
Code: Select all
$url = $serendipity['baseURL'] . preg_replace("#$path_quoted#", '', $cur['permalink'],1);to catch only the first occurence of http path.
Cheers,
Vasek