aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/composer.json2
-rw-r--r--lib/marienfressinaud/lib_opml/CHANGELOG.md6
-rw-r--r--lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php2
3 files changed, 8 insertions, 2 deletions
diff --git a/lib/composer.json b/lib/composer.json
index 6e9e0ee32..fa34c803c 100644
--- a/lib/composer.json
+++ b/lib/composer.json
@@ -12,7 +12,7 @@
],
"require": {
"php": ">=7.2.0",
- "marienfressinaud/lib_opml": "0.5.0",
+ "marienfressinaud/lib_opml": "0.5.1",
"phpgt/cssxpath": "dev-master#4fbe420aba3d9e729940107ded4236a835a1a132",
"phpmailer/phpmailer": "6.6.0"
},
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');
}