Ensure sanitizeHTML gets a string (#2351)

Regression triggered by https://github.com/FreshRSS/FreshRSS/pull/2228
pull/2352/head
Alexandre Alapetite 6 years ago committed by GitHub
parent 0a067dbcd4
commit 912480fab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/lib_rss.php

@ -280,6 +280,9 @@ function customSimplePie($attributes = array()) {
}
function sanitizeHTML($data, $base = '') {
if (!is_string($data)) {
return '';
}
static $simplePie = null;
if ($simplePie == null) {
$simplePie = customSimplePie();

Loading…
Cancel
Save