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 {
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

5
library/filter.php

@ -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;

Loading…
Cancel
Save