diff options
| author | 2019-04-06 16:07:19 +0200 | |
|---|---|---|
| committer | 2019-04-06 16:07:19 +0200 | |
| commit | 912480fab87f41bbfb7702ed269ebc5bcce6194f (patch) | |
| tree | e79549a00c1f520ad5a6c8c74aaccac1d1ce5f68 /lib | |
| parent | 0a067dbcd4f1c8958a1c7945fbbc8780b88c8d8a (diff) | |
Ensure sanitizeHTML gets a string (#2351)
Regression triggered by https://github.com/FreshRSS/FreshRSS/pull/2228
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |
