Bläddra i källkod

Ensure sanitizeHTML gets a string (#2351)

Regression triggered by https://github.com/FreshRSS/FreshRSS/pull/2228
Alexandre Alapetite 7 år sedan
förälder
incheckning
912480fab8
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      lib/lib_rss.php

+ 3 - 0
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();