mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-06 15:38:33 -05:00
Ensure sanitizeHTML gets a string (#2351)
Regression triggered by https://github.com/FreshRSS/FreshRSS/pull/2228
This commit is contained in:
committed by
GitHub
parent
0a067dbcd4
commit
912480fab8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user