}
$uri['path'] = str_replace($serendipity['serendipityHTTPPath'], '', $uri['path']);
$url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst;
- $url = str_replace($serendipity['indexFile'] . '&', '', $url); // Kill possible looped repitions which could occur
-
- return strip_tags($url);
+ $url = str_replace(
+ array(
+ $serendipity['indexFile'] . '&',
+ '"',
+ "'",
+ '<',
+ '>'
+ ),
+
+ array(
+ '',
+ '',
+ '',
+ ''
+ ),
+
+ $url); // Kill possible looped repitions and bad characters which could occur
+
+ return $url;
}
function serendipity_getUriArguments($uri, $wildcard = false) {