From ea6774cf1d4bfc4fae156198dcffa709c8367785 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 3 Sep 2005 09:03:06 +0100 Subject: [PATCH] sanity checking in filter editor, updated NEWS, changed prefs UI a bit more --- NEWS | 4 +++- backend.php | 7 +++++-- prefs.php | 11 +++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index beb5f59c..5ba79b61 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ v1.0.3 (Sep xx, 2005) - - OPML export/import. + - OPML export/import + - Support for simple content filtering (expression should be valid regexp) + - Reworked preferences dialog v1.0.2 (Sep 02, 2005) diff --git a/backend.php b/backend.php index 2c87cb7c..20847f00 100644 --- a/backend.php +++ b/backend.php @@ -646,7 +646,7 @@ } print " - +
Expr: "; print_select("fadd_match", "", $filter_types); @@ -661,7 +661,7 @@ (SELECT description FROM ttrss_filter_types WHERE id = filter_type) as filter_type_descr FROM - ttrss_filters ORDER by id"); + ttrss_filters ORDER by regexp"); print "

"; @@ -684,6 +684,9 @@ print ""; + $line["regexp"] = htmlspecialchars($line["regexp"]); + $line["description"] = htmlspecialchars($line["description"]); + if (!$edit_filter_id || $subop != "edit") { if (!$line["description"]) $line["description"] = "[No description]"; diff --git a/prefs.php b/prefs.php index 73526355..974101b1 100644 --- a/prefs.php +++ b/prefs.php @@ -28,11 +28,12 @@ -- 2.39.2
-

Feed Configuration

 
+

Feed Configuration

 

OPML Import

@@ -48,10 +49,12 @@ -

Content filtering

+

Content Filtering