summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-02-28 13:53:45 +0300
committerAndrew Dolgov <[email protected]>2020-02-28 13:53:45 +0300
commitf24ece85a6ea85ccff5fcdab2730d248892746fc (patch)
treeb20a131f8168bc2fb95e1acd2f4d9d4c937701a9 /classes/rssutils.php
parent2fefb4fd8741b38f28831f2da9e359ab4f7fa8a6 (diff)
add validationtextarea control, use it for filter match editor
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 831ac1baf..87e194603 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -1343,6 +1343,7 @@ class RSSUtils {
foreach ($filter["rules"] as $rule) {
$match = false;
$reg_exp = str_replace('/', '\/', $rule["reg_exp"]);
+ $reg_exp = str_replace("\n", "", $reg_exp); // reg_exp may be formatted with CRs now because of textarea, we need to strip those
$rule_inverse = $rule["inverse"];
if (!$reg_exp)