Browse Source

convert page data to string

main
ghost 2 years ago
parent
commit
8ce0324e94
  1. 2
      crontab/crawler.php
  2. 5
      library/filter.php

2
crontab/crawler.php

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

5
library/filter.php

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

Loading…
Cancel
Save