From a792c195d23390f4b23c95cca2071045915b0d5c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 29 Sep 2024 16:17:26 +0200 Subject: Sync SimplePie (#6840) FreshRSS upstream PR merged https://github.com/simplepie/simplepie/pull/883 --- lib/.gitignore | 4 +--- lib/composer.json | 2 +- lib/simplepie/simplepie/phpcs.xml | 10 ++++++++++ lib/simplepie/simplepie/src/SimplePie.php | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/.gitignore b/lib/.gitignore index 599e39843..d5a49d735 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -23,10 +23,8 @@ phpmailer/phpmailer/src/OAuth* phpmailer/phpmailer/src/POP3.php simplepie/simplepie/.* !simplepie/simplepie/.editorconfig -!simplepie/simplepie/.github/ -!simplepie/simplepie/.gitignore -simplepie/simplepie/.github/* !simplepie/simplepie/.github/README.md +!simplepie/simplepie/.gitignore simplepie/simplepie/autoloader.php simplepie/simplepie/build/ simplepie/simplepie/compatibility_test/ diff --git a/lib/composer.json b/lib/composer.json index e2d77fa06..92ae71805 100644 --- a/lib/composer.json +++ b/lib/composer.json @@ -18,7 +18,7 @@ "marienfressinaud/lib_opml": "0.5.1", "phpgt/cssxpath": "dev-master#45f3ac151fc21d459e2515c3aff97cd4bf877bf8", "phpmailer/phpmailer": "6.9.1", - "simplepie/simplepie": "dev-freshrss#e041dacffc6e29979437d1545773a3e0f716c486" + "simplepie/simplepie": "dev-freshrss#88f13f2df1ba17a7432a624d38884b1bd8f60e43" }, "config": { "sort-packages": true, diff --git a/lib/simplepie/simplepie/phpcs.xml b/lib/simplepie/simplepie/phpcs.xml index f77624289..6ec1797bf 100644 --- a/lib/simplepie/simplepie/phpcs.xml +++ b/lib/simplepie/simplepie/phpcs.xml @@ -7,6 +7,7 @@ + @@ -16,4 +17,13 @@ + + ./demo/ + + + ./library/ + + + ./library/ + diff --git a/lib/simplepie/simplepie/src/SimplePie.php b/lib/simplepie/simplepie/src/SimplePie.php index 455a90a2f..a02138ecd 100644 --- a/lib/simplepie/simplepie/src/SimplePie.php +++ b/lib/simplepie/simplepie/src/SimplePie.php @@ -1978,7 +1978,7 @@ class SimplePie $this->data = []; } // Check if the cache has been updated - elseif (empty($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) { // FreshRSS https://github.com/simplepie/simplepie/pull/846 + elseif (!isset($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) { // Want to know if we tried to send last-modified and/or etag headers // when requesting this file. (Note that it's up to the file to // support this, but we don't always send the headers either.) -- cgit v1.2.3