Version 0.9.1 ()
------------------------------------------------------------------------
+ * Fix a bug in the serendipity_currentURL function when Serendipity
+ is installed in your HTTP root. This bug only effects the plugins karma,
+ entrysplit and multilingual on these installations.
+ Thanks to Richard Davey for spotting this! (garvinhicking)
+
* Fix showing preview image of hotlinked images. Thanks to Thomas
and RobA from the forums! (garvinhicking)
if (!empty($uri['query'])) {
$qst = '&' . str_replace('&', '&', $uri['query']);
}
- $uri['path'] = str_replace($serendipity['serendipityHTTPPath'], '', $uri['path']);
+ $uri['path'] = preg_replace('@^' . preg_quote($serendipity['serendipityHTTPPath']) . '@i', '', $uri['path']);
$url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst;
$url = str_replace(
array(