aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside_feed.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-07-15 12:39:51 +0200
committerGravatar GitHub <noreply@github.com> 2025-07-15 12:39:51 +0200
commit5f61e426dc90b7b697a46da009af2fc88eed3ad0 (patch)
tree079de4957a207ed08a8de181f4f2649067277933 /app/layout/aside_feed.phtml
parent8a44d1045a49aa04d16af0bd4c8a0d56cadf1be3 (diff)
Sort by category title, feed title (#7702)
* Sort by category name, feed name fix https://github.com/FreshRSS/FreshRSS/issues/7698 Note that sorting is done with the default SQL collation for now, meaning that lower-case vs. upper-case and diacritics are influencing the sorting order. Improvements left for future work. Watch out that those sorting criteria are slower due to additional joins, additional requests, and poorer indexes. * i18n:pl Co-authored-by: Inverle <inverle@proton.me> * i18n: nl Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * Fix preserve sort --------- Co-authored-by: Inverle <inverle@proton.me> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'app/layout/aside_feed.phtml')
-rw-r--r--app/layout/aside_feed.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml
index 3d4103731..33c415c6f 100644
--- a/app/layout/aside_feed.phtml
+++ b/app/layout/aside_feed.phtml
@@ -13,7 +13,7 @@
if (($s = Minz_Request::paramString('state', plaintext: true)) !== '' && ctype_digit($s)) {
$state_filter_manual .= '&state=' . $s;
}
- if (($s = Minz_Request::paramString('sort', plaintext: true)) !== '' && ctype_alpha($s)) {
+ if (($s = Minz_Request::paramString('sort', plaintext: true)) !== '' && preg_match('/^[a-z.]+$/', $s)) {
$state_filter_manual .= '&sort=' . $s;
}
if (($s = Minz_Request::paramString('order', plaintext: true)) !== '' && ctype_alpha($s)) {