aboutsummaryrefslogtreecommitdiff
path: root/lib/marienfressinaud
diff options
context:
space:
mode:
authorGravatar berumuron <dev@marienfressinaud.fr> 2023-03-10 20:04:46 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-10 20:04:46 +0100
commit165a6b7347ea453b3244ddedd34fbbcc6acd6d7a (patch)
treef840e8eb16334c7cdec856b9c9f4c47c3947f7a4 /lib/marienfressinaud
parent989bfc69bbc05b8dda1f3d289dfb3897337a74ec (diff)
Update lib_opml to v0.5.1 (#5188)
Diffstat (limited to 'lib/marienfressinaud')
-rw-r--r--lib/marienfressinaud/lib_opml/CHANGELOG.md6
-rw-r--r--lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php2
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/marienfressinaud/lib_opml/CHANGELOG.md b/lib/marienfressinaud/lib_opml/CHANGELOG.md
index ee9245e7e..5af480eaf 100644
--- a/lib/marienfressinaud/lib_opml/CHANGELOG.md
+++ b/lib/marienfressinaud/lib_opml/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog of lib\_opml
+## 2023-03-10 - v0.5.1
+
+- fix: Handle case where OPML is loaded but empty
+- misc: Fix installation of Composer on the CI
+- misc: Force timezone to UTC in tests
+
## 2022-07-25 - v0.5.0
- BREAKING CHANGE: Reverse parameters in `libopml_render()`
diff --git a/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php b/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
index 4ba0df821..ed5e51756 100644
--- a/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
+++ b/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
@@ -153,7 +153,7 @@ class LibOpml
$result = false;
}
- if (!$result) {
+ if (!$result || !$dom->documentElement) {
throw new Exception('OPML string is not valid XML');
}