Skip to content

A free, self-hostable news aggregator…

Ensure sanitizeHTML gets a string (#2351)

Alexandre Alapetite912480fab87f
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 00b38254a..fd1389047 100644
--- a/lib/lib_rss.php
+++ b/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();