force results to string

This commit is contained in:
ghost 2024-01-23 01:55:28 +02:00
parent ff8461835d
commit db9dc8d4ba
3 changed files with 6 additions and 0 deletions

View File

@ -49,7 +49,9 @@ $result = $index->addDocument(
[
'url' => $url,
'rank' => (int) mb_strlen(
(string)
urldecode(
(string)
parse_url(
$url,
PHP_URL_PATH

View File

@ -365,7 +365,9 @@ foreach($index->search('')
[
'url' => $url,
'rank' => (int) mb_strlen(
(string)
urldecode(
(string)
parse_url(
$url,
PHP_URL_PATH

View File

@ -84,7 +84,9 @@ if ($config->webui->search->index->request->url->enabled && filter_var($q, FILTE
[
'url' => $url,
'rank' => (int) mb_strlen(
(string)
urldecode(
(string)
parse_url(
$url,
PHP_URL_PATH