Commit Graph
7668 Commits
Author SHA1 Message Date
dependabot[bot] d50c3bdb1b chore(deps): bump the github-actions group with 3 updates
Bumps the github-actions group with 3 updates: [docker/login-action](https://github.com/docker/login-action), [ruby/setup-ruby](https://github.com/ruby/setup-ruby) and [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action).


Updates `docker/login-action` from 4.7.0 to 4.8.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/81c6f93d4bc991e510b342a00b419b3bb4efc5c6...8aa5831fb8d48d8f76594c7ddde61ae58019f550)

Updates `ruby/setup-ruby` from 1.335.0 to 1.344.0
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb)
- [Commits](https://github.com/ruby/setup-ruby/compare/7f797815d8adceb1c412e7abefdd1ab4abc47a5f...78c62f2208e480ce3d5ae4dfd9b9e181acf48b63)

Updates `zizmorcore/zizmor-action` from 0.8.0 to 0.9.2
- [Release notes](https://github.com/zizmorcore/zizmor-action/releases)
- [Commits](https://github.com/zizmorcore/zizmor-action/compare/53290badfa369cb0bf7ad16342cb62c2fa47ac7b...1b4550e929643b8b26a62303c6bd64814271a4f1)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: ruby/setup-ruby
  dependency-version: 1.344.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: zizmorcore/zizmor-action
  dependency-version: 0.9.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-12-01 19:14:31 +00:00
Jeferson Araujo ad9904a35d Clarify the feed content selector in Brazilian Portuguese (#9670)
Clarify the content retrieval settings in Brazilian Portuguese. The current label asks for a CSS path, which can suggest a stylesheet location. The setting expects a selector such as `.entry-content`. The help text now explains that FreshRSS fetches article content from the original site when the RSS feed provides only part of the text.
2026-12-01 16:41:28 +01:00
0abfe20385 Fix: corriger les statistiques PostgreSQL (#9659)
Closes #9658

Changes proposed in this pull request:

- Use PostgreSQL `dow` instead of `day` for the day-of-week chart.
- Normalize month repartitions to exactly 12 entries, from January to December.
- Include today in the 30-day chart, anchor the day calculation on the oldest timestamp so integer division is always positive, and return a JSON list.
- Set chart labels and build the average line as an array matching the bar data.

* Fix: corriger les statistiques PostgreSQL

* Remove dead code

---------

Co-authored-by: upskaling <upskaling@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-30 20:35:11 +01:00
Jeferson AraujoandAlexandre Alapetite f6954526d4 Document how to back up FreshRSS settings only (#9662)
The backup guide covers full installations, subscriptions and saved articles. Add a short section for people who only need the installation and per-user settings, with links to the existing instructions for exporting subscriptions or backing up the whole installation.

Refs #4278.

* Document how to back up FreshRSS settings only

* Favour typographic quotes

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-30 13:56:47 +01:00
Jeferson Araujo 001301b142 Start the feed refresh timer during setup (#9663)
The systemd setup currently enables the feed refresh timer for future boots but leaves it stopped during initial setup. Use `enable --now` so the timer starts as part of setup, and show how to check when it will next run.

Checked the commands against the systemctl manual. Markdownlint passed for all 114 documentation files. OpenAI Codex assisted with the edit and verification.
2026-11-30 13:41:04 +01:00
fuyoacademy cb522a8dbf Keep the errors filter after removing a feed (#9656)
Fix #9654

When the subscription page shows only the feeds with errors and a feed is removed from its slider, the redirect went back to the full list. The remove button now keeps `error=1`, and `feed/delete` redirects to the subscription page with `error=1` in that case.

Without `error`, the redirect is unchanged.

How this was checked: I ran FreshRSS 1.31 edge with the PHP built-in server and SQLite, with one feed in error. Before the change, `POST feed/delete` from the error-filtered slider redirected to `?c=subscription`. After the change, it redirects to `?c=subscription&error=1`. Without the error filter, it still redirects to `?c=subscription`. I did not add a PHPUnit test because the action ends in a redirect, and I did not run `make test-all`.
2026-11-30 11:06:59 +01:00
Alexandre Alapetite 228b2277e1 Fix CI/CD pt-BR
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/9657
2026-11-30 10:22:34 +01:00
Jeferson Araujo a93c864b99 Translate three remaining Brazilian Portuguese catalog strings (#9657)
Translate the remaining English text for user-query sorting, the pending WebSub notification, and the existing password length message. These keys are separate from #9655.
2026-11-30 10:15:54 +01:00
Jeferson Araujo 3da447ae66 Translate reading actions into Brazilian Portuguese (#9655) 2026-11-29 21:43:17 +01:00
S M Nazmuz SakibandAlexandre Alapetite 6048309573 Make configuration saves crash-safe (#9651)
Fixes #9650

Writes the temporary config file with a checked full write followed by `fflush()` and `fsync()` before the atomic rename, so an unclean shutdown cannot leave `config.php` truncated to zero bytes. The backup is now only replaced when the current config file is non-empty, preserving the last known-good backup if a previous save was interrupted.

Adds regression tests covering a normal save (previous config backed up) and a save when the current config file is empty (existing backup preserved).

* Make configuration saves crash-safe

* Simplify comments

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-29 17:55:33 +01:00
Inverle df77842587 CI: Test Jekyll documentation build in PRs (#9653)
To avoid breaking the CI after a merge, example of breakage: https://github.com/FreshRSS/FreshRSS/pull/9509 ([relevant run](https://github.com/FreshRSS/FreshRSS/actions/runs/41317221948/job/124879715769)).
2026-11-29 17:42:21 +01:00
Inverle efe955024c Add Makefile commands for building documentation (#9652)
Added:
* `make build-docs`: builds the documentation to `docs/_site`, to test if anything is broken.
* `make serve-docs`: runs a server for serving the documentation files, by default at `http://127.0.0.1:4000/FreshRSS/`.
  * Can also specify e.g. `DOCS_HOST=0.0.0.0 DOCS_PORT=8080`.
* `make clean-docs`: deletes `docs/{_site,.jekyll-cache}`.

The new commands are available in `make help`:
```
Documentation
  build-docs                      Test building Jekyll documentation
  serve-docs                      Run local server for serving docs
  clean-docs                      Clean up generated Jekyll files
```

[docs/README.md](https://github.com/FreshRSS/FreshRSS/blob/edge/docs/README.md) was updated with new information regarding the commands.
2026-11-29 17:40:37 +01:00
InverleandAlexandre Alapetite feeec153c4 Normalize cURL proxy options during requests (#9604)
Ref: [GHSA-fc32-79hf-pcmw](https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-fc32-79hf-pcmw) (considered a bug), https://github.com/curl/curl/issues/23681, https://github.com/FreshRSS/FreshRSS/discussions/9286#discussioncomment-18392518

Fixed issues:
* Using wrong default HTTP port for proxies (supposed to be 1080 not 80).
* Lack of system configuration support for a mix of `CURLOPT_{PROXY,PROXYTYPE,PROXYPORT}` options, along with user defined feed options.

* Normalize cURL proxy options during requests

* Use `CURLPROXY_HTTPS` in tests instead of 2

* Fix some more mismatched port cases

* Remove changelog
Avoid changelog in PRs to reduce conflicts

* Minor comments reduction

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-29 17:39:25 +01:00
Alexandre Alapetite ec7c07b17d Fix charset Windows-1252 (#9649)
fix https://github.com/FreshRSS/FreshRSS/issues/9648
2026-11-28 18:06:00 +01:00
Alexandre Alapetite 4c362293e1 Security fixes SimplePie (#9639)
Fix Sanitizer bypass via markup in attributes inside xmp, textarea, iframe
https://github.com/FreshRSS/simplepie/pull/101
https://github.com/simplepie/simplepie/pull/1026
https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-4xgp-wh7q-984f

Fix url remove credentials
https://github.com/FreshRSS/simplepie/pull/100
https://github.com/simplepie/simplepie/pull/1025
https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-g7fv-8j56-6v5f

Fix Feed credentials leak to other origins via autodiscovery ~~and redirects~~
https://github.com/FreshRSS/simplepie/pull/102
https://github.com/simplepie/simplepie/pull/1027
https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-7m4j-xpgq-7m3h

Contributes to: SSRF bypass: port-less HTTP proxy pinned on 80, but libcurl uses 1080
https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-fc32-79hf-pcmw
2026-11-28 16:14:28 +01:00
Inverle db2cc4a373 Ease keyboard navigation within article contents (#9643)
* After uncollapsing an article, the first element inside of it will be focused (the title link) for easier Tab navigation.
* All of the links inside entry headers (normal view) now use `tabindex="-1"`, so they can't be focused anymore using Tab. This makes navigation less confusing as there is JS functionality already for moving between articles (i.e. j/k keys) which is the intended way.
  * (or s/l for the Share or Labels menu)
* Focus rings are now visible again (removed `outline: none` from CSS for `<a>` elements).

This is mainly for the Normal view, but affects the Reader and Global views too.
2026-11-28 16:06:10 +01:00
Meer KhurramandMeer Khurram 221f58781c Add Meer Khurram to CREDITS.md (#9647)
https://github.com/FreshRSS/FreshRSS/pull/9645
Co-authored-by: Meer Khurram <199657909+imeerkhurram@users.noreply.github.com>
2026-11-28 16:01:06 +01:00
Meer KhurramandMeer Khurram 82e6fabdd9 Add Hindi (hi) translation (#9645)
Adds a complete Hindi translation in app/i18n/hi/ (all 1,180 strings of the English files, plus plurals.php with nplurals=2; plural=(n > 1)), registers hi in the gen.lang list of every language, and updates the translation table in README.md and README.fr.md.

Co-authored-by: Meer Khurram <199657909+imeerkhurram@users.noreply.github.com>
2026-11-28 12:59:03 +01:00
IcedOsmanthusLatte 30dbd4700f docs: explain clearing a single feed's cache (#9646) 2026-11-28 12:57:22 +01:00
CokeRoach 5a58b22361 i18n: complete Korean (ko) translations (#9640)
The Korean translation had 228 entries marked // TODO (falling back to English)
and 14 marked // DIRTY across 9 files. This translates the TODO entries, updates
the DIRTY ones to the current English, and marks three strings that stay the
same in Korean as // IGNORE (the "❌ " error prefix, "Lietuvių" and "URL").
Korean is now at 100% in the README tables.
2026-11-28 01:45:15 +01:00
yztutuandAlexandre Alapetite cc9f03e654 i18n: complete Simplified Chinese (zh-CN) translations (#9633)
* i18n: complete Simplified Chinese translations

* make fix-all

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-26 17:25:41 +01:00
yztutuandAlexandre Alapetite 267828735e i18n: complete Traditional Chinese (zh-TW) translations (#9634)
* i18n: complete Traditional Chinese translations

* make fix-all

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-26 17:21:46 +01:00
Alexandre Alapetite cd2b92509a Changelog 2026-11-25 17:17:45 +01:00
f94c101621 Harden SSRF guard: reject remaining reserved/special-use IP ranges (#9621)
* Reject remaining special-use ranges in the SSRF guard

FILTER_FLAG_GLOBAL_RANGE still accepts several reserved ranges on
supported PHP versions. Reject those explicitly, including when an
IPv4 address is embedded in the public NAT64 prefix, and keep
legitimate public NAT64 addresses allowed.

Co-authored-by: aplaton216 <aplaton216@users.noreply.github.com>

* Refactor

Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-2983-h3r5-qv6j
Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-8f2g-vq96-ffxw

* Doc PHP upstream

https://github.com/php/php-src/pull/25426

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: aplaton216 <aplaton216@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-25 15:20:34 +01:00
InverleandAlexandre Alapetite e18c511b11 Minz: Launch actions case-sensitively (#9620)
Fix [GHSA-gqgh-h7rm-f87f](https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-gqgh-h7rm-f87f)

Problem can be observed by going to https://demo.freshrss.org/i/?a=abouT. It might not be obvious immediately that the action actually launched. But that's because the view being searched for is `index/abouT.phtml`, which won't work when filenames are case sensitive (view shows up empty instead, but the action launches).

Now with the fixes, the following error message will be shown instead:

>  Invalid action name “abouTAction” for controller “FreshRSS_index_Controller”.

This is relevant for e.g. [xExtension-Captcha](https://github.com/FreshRSS/Extensions/tree/main/xExtension-Captcha).

* Minz: Launch actions case-sensitively

* Simplify and more robust

* Stricter classAutoloader

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-25 08:31:58 +01:00
Alexandre Alapetite 5d81cd8832 Avoid duplicated enclosure titles (#9615)
Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-pwpq-78jm-px4m
2026-11-24 09:14:10 +01:00
Alexandre Alapetite a3d8ce7aab SimplePie: Fix regex in clean_hash() (#9616)
fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-8pj8-6xgr-8r8f
And there was also a bug for PHP < 8.4, which does not recognise the regex quantifier `{,8192}` but only `{0,8192}`
2026-11-24 09:02:35 +01:00
Alexandre Alapetite e1c35839a3 Bump cssxpath (#9618)
Upstream PR is merged:
* https://github.com/phpgt/CssXPath/pull/256

Follow-up of https://github.com/FreshRSS/FreshRSS/pull/9567
2026-11-24 08:11:35 +01:00
Alexandre Alapetite fa16ffdeeb Start next version 2026-11-23 09:37:26 +01:00
Alexandre Alapetite 09f4b078c8 Credits 1.31.0 2026-11-23 09:13:38 +01:00
Alexandre Alapetite 8999ba8e59 Release 1.31.0 2026-11-23 08:47:21 +01:00
Alexandre Alapetite 622d7be2fe Changelog 2026-11-23 08:36:21 +01:00
Inverle 306327a9d5 Lychee CI: only check changed URLs in PRs (#9614)
Ref: https://github.com/FreshRSS/FreshRSS/pull/9209#issuecomment-6534445300

Only checks modified or added URLs in PRs to reduce noise. The workflow still continues to scan the entire repo for push and cron events.

Tested working in a fork PR.
2026-11-23 08:30:13 +01:00
Alexandre Alapetite dcd40cb7d4 Better sanitize domains (#9611)
Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-3ch8-46c3-xr9h
2026-11-22 21:57:54 +01:00
Alexandre Alapetite 6320ff8af7 More secure remove access (#9610)
Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-r27w-hr3c-hjr3
2026-11-22 21:54:39 +01:00
Chareonwit KunnaandAlexandre Alapetite cf6a0a5c35 docs: fix doubled words (#9609)
* docs: fix doubled word

Signed-off-by: Chareonwit Kunna <21arenabreakout12@gmail.com>

* docs: fix doubled word

Signed-off-by: Chareonwit Kunna <21arenabreakout12@gmail.com>

* docs: fix doubled word

Signed-off-by: Chareonwit Kunna <21arenabreakout12@gmail.com>

* docs: fix doubled word

Signed-off-by: Chareonwit Kunna <21arenabreakout12@gmail.com>

* One more

---------

Signed-off-by: Chareonwit Kunna <21arenabreakout12@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-11-22 13:20:56 +01:00
Inverle 6a6b23bf82 Fix HTML injection in extension names (#9608)
Fix [GHSA-crc7-3qcq-m9h3](https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-crc7-3qcq-m9h3)
2026-11-22 08:54:32 +01:00
Alexandre Alapetite aa97720c9c Changelog 2026-11-21 23:25:18 +01:00
Alexandre Alapetite 3c13b68dc9 Improve test-all-php-versions for PostgreSQL (#9606)
To avoid skipped tests.
Follow-up of:
* https://github.com/FreshRSS/FreshRSS/pull/9576
* https://github.com/FreshRSS/FreshRSS/pull/9535
2026-11-21 22:40:40 +01:00
Alexandre Alapetite 2855de21e3 Fix full-content logic (#9602)
Rewritten inspired by MIME multipart boundaries.
Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-5hcv-wqwr-j8r8
2026-11-21 22:39:13 +01:00
Alexandre Alapetite 71cda6bfe2 Fix regression lazyload (#9601)
fix https://github.com/FreshRSS/FreshRSS/pull/7864#issuecomment-7036632538
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5816
2026-11-20 23:04:26 +01:00
Alexandre Alapetite 67cb0a2d9a Sanitize DB install params (#9595) 2026-11-20 22:41:26 +01:00
Inverle 2f31a2fdf5 Fix HTML injection in view mode error notification (#9605)
Fix [GHSA-wpf6-5v7v-6cvj](https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-wpf6-5v7v-6cvj)

Introduced in https://github.com/FreshRSS/FreshRSS/pull/7668
2026-11-20 22:11:25 +01:00
Inverle 67e05b0b77 Fix make start stopping on terminal resize (#9603)
* Fix `make start` stopping on terminal resize

* Update documentation examples for `docker run`

* Clarify Ctrl+C under Development mode section
2026-11-20 17:58:45 +01:00
Alexandre Alapetite 8ffddc11f8 More security for extension files: nosniff (#9593)
Global `X-Content-Type-Options: nosniff`
And follow-up of #7753
2026-11-20 13:54:09 +01:00
Alexandre Alapetite 13280a4dfc Safer login (#9592)
Avoid using some functions changing state before full verification.
Related to https://github.com/FreshRSS/FreshRSS/pull/9598
2026-11-20 10:24:29 +01:00
Inverle 2584514db3 Deny formLogin access if already logged in (#9598)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/9592

There is no reason for logged in users to have access to the login page.
2026-11-20 08:10:27 +01:00
Alexandre Alapetite 34822e73a2 Changelog 2026-11-19 23:51:41 +01:00
Alexandre Alapetite ae664c8ccd Better sanitize bookmark (#9594) 2026-11-19 23:20:55 +01:00
Alexandre Alapetite ea646d2bde Use PHP 8.4+ \Dom classes and functions (#9567)
Currently, SimplePie uses legacy DOMDocument parsing, which outputs potentially problematic HTML, not correctly sanitised.
This breaks the assumption that one can use something like `<div><!-- some HTML sanitized from SimplePie --></div>`.

```
--- Expected
+++ Actual
@@ @@
 '<ul>
-    <li><div></div></li>
+    <li><div>
     <li>Item</li>
-</ul>'
+</div></li></ul>'
```

When shown in a compliant Web browser, several tags will be wrongly closed, breaking the layout of the client.

This PR patches SimplePie to use the modern parser and code syntax, while maintaining a best-effort polyfill for legacy PHP versions < 8.4.

Depends on:

SimplePie: Upgrade to PHPStan 2
* https://github.com/FreshRSS/simplepie/pull/97
* https://github.com/simplepie/simplepie/pull/939
* https://github.com/simplepie/simplepie/pull/1019

SimplePie: Use PHP 8.4+ \Dom classes and functions
* https://github.com/FreshRSS/simplepie/pull/98
* https://github.com/simplepie/simplepie/issues/1021

SimplePie: Add unit test for HTML5 sanitizing compliance
* https://github.com/simplepie/simplepie/pull/1022

SimplePie: Remove obsolete xml_is_sane and XMLReader fallback
* https://github.com/simplepie/simplepie/pull/1023

CssXPath: Add support for case insensitivity
* https://github.com/phpgt/CssXPath/pull/256

fix https://github.com/FreshRSS/FreshRSS/issues/5201
fix https://github.com/FreshRSS/FreshRSS/issues/6830
fix https://github.com/FreshRSS/FreshRSS/issues/6831

~5% faster for HTML sanitising.
Remove SimpleXML. Remove XMLReader.
2026-11-19 23:17:04 +01:00