Alexandre Alapetite
bb56f59fcf
SimplePie merge upstream ( #7967 )
...
* https://github.com/simplepie/simplepie/pull/936 (Normalize encoding uppercase)
2025-09-15 13:40:14 +02:00
Alexandre Alapetite
b04104fd95
Bump SimplePie to 1.9.0 ( #7955 )
...
Main change is https://github.com/simplepie/simplepie/pull/937 (PHP 8.5: Conditionally call deprecated functions)
P.S. a sync with SimplePie upstream was already done recently, hence the limited changes:
* https://github.com/FreshRSS/FreshRSS/pull/7775
2025-09-13 00:19:31 +02:00
Alexandre Alapetite
531b9286d9
Fix regression on_http_response ( #7824 )
...
Fix regression (bad merge) from https://github.com/FreshRSS/FreshRSS/pull/7775
* https://github.com/FreshRSS/simplepie/pull/50
2025-08-14 09:35:30 +02:00
Alexandre Alapetite
eaf69f591f
SimplePie Fix regex backtrack limit in clean_hash() ( #7813 )
...
https://github.com/FreshRSS/simplepie/pull/48
and merge upstream https://github.com/FreshRSS/simplepie/pull/49
fix https://github.com/FreshRSS/FreshRSS/issues/7807
We had a risk of hitting `Backtrack limit was exhausted` in case of open XML comment `<!--` not closed and followed by a very long document.
Fixed by:
* Limiting the max length of the comment
* Stopping at an apparent end of CDATA section `]]>` as it is likely an error
It does not matter much if there are rare cases when the regex does not work perfectly, as it is only used for a cache hint.
2025-08-11 00:52:09 +02:00
Alexandre Alapetite
b817598f57
Bump SimplePie with PHPStan Level 8 ( #7775 )
...
* Bump SimplePie with PHPStan Level 8
* https://github.com/FreshRSS/simplepie/pull/45
SimplePie increased to PHPStan Level 8:
* https://github.com/simplepie/simplepie/pull/857
* Merge upstream
Including my two PRs:
* https://github.com/simplepie/simplepie/pull/932
* https://github.com/simplepie/simplepie/pull/933
* Resolve upstream sync of Expose HTTP status
* https://github.com/FreshRSS/simplepie/pull/47
Finalise merge, following:
* https://github.com/simplepie/simplepie/pull/905#issuecomment-3007605779
* https://github.com/simplepie/simplepie/pull/909
* https://github.com/FreshRSS/FreshRSS/issues/7038
2025-08-01 23:27:35 +02:00
Alexandre Alapetite
8b73573a32
SimplePie: sync upstream ( #7706 )
...
https://github.com/FreshRSS/simplepie/pull/43
2025-07-03 08:45:52 +02:00
Alexandre Alapetite
7c57f38008
Fix feeds encoded in UTF-16LE ( #7691 )
...
* Fix feeds encoded in UTF-16LE
Fix https://github.com/FreshRSS/FreshRSS/issues/7690
https://github.com/FreshRSS/simplepie/pull/40
The final character `>` of a feed is encoded as `3E00` in UTF-16LE, so calling `trim()` was removing the `\x00`, breaking the multibyte encoding and making the feed invalid.
Upstream PR https://github.com/simplepie/simplepie/pull/916
* Trim body for all paths
https://github.com/FreshRSS/simplepie/pull/42
https://github.com/simplepie/simplepie/pull/917
Slight refactor of https://github.com/simplepie/simplepie/pull/916 (https://github.com/FreshRSS/simplepie/pull/40 ) to cover all paths.
Missing paths included the fsock method without gzip (e.g. deflate or plain).
2025-06-25 16:37:41 +02:00
Alexandre Alapetite
42aeecb5ed
Fix support for XML feeds with HTML entities ( #7689 )
...
fix https://github.com/FreshRSS/FreshRSS/issues/7687
https://github.com/FreshRSS/simplepie/pull/37
Upstream: https://github.com/simplepie/simplepie/pull/915
Partial revert of https://github.com/FreshRSS/FreshRSS/pull/7515
HTML entities are normally only allowed in XML when there is a DTD declaring them. SimplePie is even allowing Atom documents with undeclared HTML entities - which I am not sure is on purpose.
2025-06-24 10:37:33 +02:00
Alexandre Alapetite
b418b83bd4
SimplePie: Fix propagation of HTTP error codes ( #7670 )
...
* SimplePie: Fix propagation of HTTP error codes
fix https://github.com/FreshRSS/FreshRSS/issues/7038
https://github.com/FreshRSS/simplepie/pull/36
upstream https://github.com/simplepie/simplepie/pull/905
Co-authored-by: Edgar Alvarado <15692727+pe1uca@users.noreply.github.com >
2025-06-15 21:25:03 +02:00
dependabot[bot]
df6e57c289
Update phpmailer/phpmailer requirement from 6.9.3 to 6.10.0 in /lib ( #7541 )
...
Updates the requirements on [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer ) to permit the latest version.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases )
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md )
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.9.3...v6.10.0 )
---
updated-dependencies:
- dependency-name: phpmailer/phpmailer
dependency-version: 6.10.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-01 21:54:20 +02:00
Alexandre Alapetite
d1f9b6c232
SimplePie: Fix support for feeds with XML preample + DTD ( #7515 )
...
Regression from https://github.com/FreshRSS/FreshRSS/pull/4374
fix: https://github.com/FreshRSS/FreshRSS/issues/7514
https://github.com/FreshRSS/simplepie/pull/35
Upstream PR: https://github.com/simplepie/simplepie/pull/914
2025-04-18 14:59:46 +02:00
Alexandre Alapetite
a607407f4b
SimplePie sync upstream ( #7434 )
...
https://github.com/FreshRSS/simplepie/pull/34
2025-03-15 11:53:34 +01:00
Alexandre Alapetite
ecdb63c335
Fix regression cURL HTTP headers ( #7403 )
...
* Fix regression cURL HTTP headers
fix https://github.com/FreshRSS/FreshRSS/issues/6712#issuecomment-2697961491
We would sometimes wrongly override the default HTTP headers of SimplePie
https://github.com/FreshRSS/simplepie/pull/33
https://github.com/simplepie/simplepie/pull/912
* Sync SimplePie
https://github.com/FreshRSS/simplepie/pull/33
2025-03-05 16:45:06 +01:00
Alexandre Alapetite
4d7584312a
CssXPath 1.3.0 ( #7211 )
...
No change
https://github.com/PhpGt/CssXPath/pull/227#issuecomment-2580589055
2025-01-11 14:39:34 +01:00
Alexandre Alapetite
35a2045d0c
Merge SimplePie 1.8.1 ( #7067 )
...
https://github.com/FreshRSS/simplepie/pull/32
2024-12-05 23:24:55 +01:00
dependabot[bot]
b84cbce905
Update phpmailer/phpmailer requirement from 6.9.2 to 6.9.3 in /lib ( #7046 )
...
* Update phpmailer/phpmailer requirement from 6.9.2 to 6.9.3 in /lib
Updates the requirements on [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer ) to permit the latest version.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases )
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md )
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.9.2...v6.9.3 )
---
updated-dependencies:
- dependency-name: phpmailer/phpmailer
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update phpmailer
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2024-12-01 20:13:27 +01:00
dependabot[bot]
b7bff9484f
Update phpmailer/phpmailer requirement from 6.9.1 to 6.9.2 in /lib ( #6968 )
...
* Update phpmailer/phpmailer requirement from 6.9.1 to 6.9.2 in /lib
Updates the requirements on [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer ) to permit the latest version.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases )
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md )
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.9.1...v6.9.2 )
---
updated-dependencies:
- dependency-name: phpmailer/phpmailer
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update library code
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2024-11-01 23:22:22 +01:00
Alexandre Alapetite
a792c195d2
Sync SimplePie ( #6840 )
...
FreshRSS upstream PR merged https://github.com/simplepie/simplepie/pull/883
2024-09-29 16:17:26 +02:00
Alexandre Alapetite
7b2e87fd33
Remove HTTP Referer ( #6822 )
...
* Remove HTTP Referer
https://github.com/FreshRSS/simplepie/pull/27
https://github.com/FreshRSS/FreshRSS/pull/6523
fix https://github.com/FreshRSS/FreshRSS/issues/6811
https://github.com/simplepie/simplepie/issues/224
* Bump SimplePie commit
2024-09-21 15:41:14 +02:00
Alexandre Alapetite
ffc3d393e5
SimplePie support for HTTP cache policies ( #6812 )
...
* SimplePie support for HTTP cache policies
Discussion in https://github.com/FreshRSS/simplepie/pull/26
* Bump SimplePie commit
* Typos
* Typos
* Simpler logic
* Explicitly disable cache for non-GET flows
* Bump SimplePie commit
* Bump SimplePie commit
* Bump SimplePie commit
* Bump SimplePie commit
2024-09-20 23:25:38 +02:00
Artur Weigandt
882deab455
Allow SimplePie updates with composer ( #4374 )
...
* rename lib/SimplePie to lib/CustomSimplePie
* add test for autoloading SimplePie with PSR-0
* install SimplePie 1.6.0
* Add SimplePie CHANGELOG.md, ignore irrelevant files
* remove unmodified custom classes
* rename all customized SimplePie classes
* Add autoloading for SimplePie PSR-0 and CustomSimplePie classes
* let CustomSimplePie extends SimplePie, remove unchanged code
* let CustomSimplePieMisc extends SimplePie\Misc, remove unchanged code
* Add tests for autoloading
* let CustomSimplePieContentTypeSniffer extends Sniffer, remove unchanged code
* remove unchanged CustomSimplePieEnclosure class
The fixed typos are commited to SimplePie
See 133eac158c
* let CustomSimplePieFile extends SimplePie\File, remove unchanged code
* let CustomSimplePieParser extends SimplePie\Parser, remove unchanged code
* let CustomSimplePieSanitize extends SimplePie\Sanitize, remove unchanged code
* let CustomSimplePieHttpParser extends SimplePie\HTTP\Parser, remove unchanged code
* Remove CustomSimplePie
* Switch SimplePie repo to https://github.com/FreshRSS/simplepie.git
* move to latest branch, update all SimplePie source files
* Use namespaced SimplePie classes, remove SimplePie library folder
* Update to latest SimplePie version with FreshRSS modifications
* Bump SimplePie
Tests expected to fail due to missing a backport of functionalities
* Add fork-specific readme
* Re-implement initial syslog SimplePie GET
https://github.com/FreshRSS/FreshRSS/pull/815
Lacks https://github.com/FreshRSS/FreshRSS/pull/6061
* Closer backport of syslog SimplePie GET
https://github.com/FreshRSS/FreshRSS/pull/6061
But the requests logs will be in the wrong order in case of redirections
* Fixes
* lib update
* SimplePie include a few more files
* Try with cache-hash branch
* Point to newer commit
* Point to newer commit
* Finalise logs
* Finalise
* Bump SimplePie commit
* Bump SimplePie commit
* Readme SimplePie fork
* Bump SimplePie commit
* Better logging
* Bump SimplePie commit
* Reworked approach to work with SimplePie cache
Simpler FreshRSS patches
* Bump SimplePie commit
https://github.com/FreshRSS/simplepie/pull/22
* Simplepie846
https://github.com/FreshRSS/simplepie/pull/23
And additional fixes
* Remove log
* Cherry pick relevant unmerged SimplePie PRs
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2024-09-14 23:11:10 +02:00
Alexandre Alapetite
9f4f6e9cac
Bump phpgt/cssxpath ( #6618 )
...
Includes https://github.com/PhpGt/CssXPath/pull/227
Follow-up of https://github.com/PhpGt/CssXPath/pull/227 for PHP 8.4
Requires PHP 8.0+
Full diff d99d35f719...45f3ac151f
2024-09-06 09:11:37 +02:00
Alexandre Alapetite
4704c11d17
Update to PHPMailer 6.9.1 ( #6022 )
2024-01-05 08:45:07 +01:00
Alexandre Alapetite
13a1c412df
Minor update dependencies ( #5693 )
...
* Minor update dependencies
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5691
Mostly dev dependencies; nothing that affects our runtime
* Update versions for GitHub Actions
* Fix newly found typos
* Fix exclude path
2023-10-08 20:19:17 +02:00
Alexandre Alapetite
4b2a94453f
PHPMailer 6.8.0 ( #5389 )
...
* PHPMailer 6.8.0
https://github.com/PHPMailer/PHPMailer/releases/tag/v6.8.0
https://github.com/PHPMailer/PHPMailer/releases
* Exclude unused DSNConfigurator
2023-05-11 13:08:49 +02:00
Alexandre Alapetite
6e2f2f1c1e
A few additional PHPStan rules ( #5388 )
...
A subset of
https://github.com/phpstan/phpstan-strict-rules
2023-05-11 13:02:04 +02:00
berumuron
165a6b7347
Update lib_opml to v0.5.1 ( #5188 )
2023-03-10 20:04:46 +01:00
berumuron
daaa391e33
tec: Update the lib_opml ( #4403 )
...
* fix: Fix undefined GLOB_BRACE on Alpine
The manual states that:
> Note: The GLOB_BRACE flag is not available on some non GNU systems,
> like Solaris or Alpine Linux.
This generated an error on Alpine.
Reference: https://www.php.net/manual/function.glob.php
* fix: List details of feeds for OPML exportation
The details are necessary to export the XPath information, the CSS full
content path and read actions filters.
* Update LibOpml to 0.4.0
* Refactor OPML importation to be more robust
First, it fixes two regressions introduced by the update of lib_opml:
- title attribute is used when text attribute is missing;
- the OPML category attribute is used as a fallback for feeds categories.
In a related way, if also fixes a problem when a feed had both a parent
category outline and a category attribute. Before, it only considered the
attribute as its category, but now it considers the parent outline.
Then, it counts category limit correctly by not increasing
`$nb_categories` if the category already exists.
* Exclude lib_opml from the CodeSniffer
* Fix variable names when logging some errors
* Fix catch of LibOpml Exception
* Make sure to declare the category
* Exclude lib_opml from PHPStan analyze
* Disable markdownlint for lib_opml
* Fix typos
* Use auto-loading and allow updates via Composer
* Fix broken links to lib_opml
* Bring back the ability to import the OPML frss:opmlUrl attribute
* Refactor the logs of OPML errors
* Update lib_opml to the version 0.5.0
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2023-01-18 10:12:21 +01:00
Alexandre Alapetite
570503b7f1
Require PHP 7.2+ ( #4848 )
...
Drop PHP 7.0- as planned https://github.com/FreshRSS/FreshRSS/discussions/3321#discussioncomment-835704
2022-11-14 15:02:44 +01:00
Alexandre Alapetite
2acf3a4dd8
CssXPath-StarSelector ( #4506 )
...
* CssXPath-StarSelector
Add support for selectors such as `a[href*="example"]`
https://developer.mozilla.org/docs/Web/CSS/Attribute_selectors
Translated to `.//a[contains(@href,"example")]`
Upstream PR: https://github.com/PhpGt/CssXPath/pull/181
* Upstream merged
2022-08-18 11:14:40 +02:00
Artur Weigandt
d6fd78b968
Allow CssXPath updates with composer ( #4368 )
...
* Install CssXPath with composer
* Fix code style in tests
* fix pathnames for tests and linting
* add irrelevant files to .gitignore
* Alphabetic order
* let composer sort the packages alphabetically
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-05-16 12:04:43 +02:00
Artur Weigandt
5110d1db3e
Update to PHPMailer 6.6.0 with composer ( #4329 )
...
* Install PHPMailer 6.5.1 with composer
* Fix folder name for phpmailer
* Update PHPMailer to v6.6.0, add LICENSE and README.md
* remove composer and autoload.php after install/update
* Fix path to PHPMailer for PHPStan
* Remove lib/composer.lock, lock PHPMailer at version 6.6.0
* Improve PSR-4 autoloading for PHPMailer
* Markdownlint ignore
* Delete some obvious comments
* ignores
* Support composer update --no-autoloader
* Automatic cleaning
With rules based on https://github.com/PHPMailer/PHPMailer/blob/master/README.md#minimal-installation
* Readme gitignore hint
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-05-14 23:38:16 +02:00