فهرست منبع

Update lib_opml to v0.5.1 (#5188)

berumuron 3 سال پیش
والد
کامیت
165a6b7347
3فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 1 1
      lib/composer.json
  2. 6 0
      lib/marienfressinaud/lib_opml/CHANGELOG.md
  3. 1 1
      lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php

+ 1 - 1
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"
     },

+ 6 - 0
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()`

+ 1 - 1
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');
         }