Ensure sanitizeHTML gets a string (#2351)

Regression triggered by https://github.com/FreshRSS/FreshRSS/pull/2228
This commit is contained in:
Alexandre Alapetite
2019-04-06 16:07:19 +02:00
committed by GitHub
parent 0a067dbcd4
commit 912480fab8

View File

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