// this is used for user http parameters unless HTML code is actually needed
function clean($param) {
if (is_array($param)) {
- return array_map(strip_tags, $param);
+ return array_map("strip_tags", $param);
} else if (is_string($param)) {
return strip_tags($param);
} else {
}
if ($entry->nodeName == 'img') {
+ $entry->setAttribute('referrerpolicy', 'no-referrer');
if ($entry->hasAttribute('src')) {
$is_https_url = parse_url($entry->getAttribute('src'), PHP_URL_SCHEME) === 'https';
if ($rule["cat_id"] > 0) {
$children = Feeds::getChildCategories($rule["cat_id"], $owner_uid);
array_push($children, $rule["cat_id"]);
+ $children = array_map("intval", $children);
$children = join(",", $children);