1
0

PHP8 compat fix for sending trackbacks (when target has no params)

This commit is contained in:
onli
2021-05-28 17:59:44 +02:00
parent 8d1dd2994c
commit 8b8d8bf2c5

View File

@ -115,6 +115,9 @@ function _serendipity_send($loc, $data, $contenttype = null) {
global $serendipity;
$target = parse_url($loc);
if (! isset($target['query'])) {
$target['query'] = '';
}
if ($target['query'] != '') {
$target['query'] = '?' . str_replace('&', '&', $target['query']);
}