diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Models/Entry.php | 2 | ||||
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 441730af2..adb208276 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -817,7 +817,7 @@ HTML; if (!empty($feed->attributeArray('path_entries_condition'))) { $found = false; foreach ($feed->attributeArray('path_entries_condition') as $condition) { - if (trim($condition) === '') { + if (!is_string($condition) || trim($condition) === '') { continue; } $booleanSearch = new FreshRSS_BooleanSearch($condition); diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index f58d46d0f..c73987e50 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -667,7 +667,9 @@ <textarea class="w100" id="path_entries_condition" name="path_entries_condition" rows="3" cols="64" spellcheck="false" placeholder="<?= _t('gen.short.blank_to_disable') ?>"><?php foreach ($this->feed->attributeArray('path_entries_condition') ?? [] as $condition) { - echo htmlspecialchars($condition, ENT_NOQUOTES, 'UTF-8'), PHP_EOL; + if (is_string($condition)) { + echo htmlspecialchars($condition, ENT_NOQUOTES, 'UTF-8'), PHP_EOL; + } } ?></textarea> <p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p> |
