convert page data to string

This commit is contained in:
ghost 2023-05-09 12:52:07 +03:00
parent dfca5570c6
commit 8ce0324e94
2 changed files with 6 additions and 1 deletions

View File

@ -475,7 +475,7 @@ try {
Filter::pageTitle($title->item(0)->nodeValue), Filter::pageTitle($title->item(0)->nodeValue),
Filter::pageDescription($metaDescription), Filter::pageDescription($metaDescription),
Filter::pageKeywords($metaKeywords), Filter::pageKeywords($metaKeywords),
$queueHostPage->crawlMetaOnly ? null : $content, $queueHostPage->crawlMetaOnly ? null : Filter::string($content),
time()); time());
// Update manifest registry // Update manifest registry

View File

@ -2,6 +2,11 @@
class Filter { class Filter {
static public function string(mixed $data) {
return (string) $data;
}
static public function url(mixed $url) { static public function url(mixed $url) {
$url = (string) $url; $url = (string) $url;