aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-20 11:38:58 +0200
committerGravatar GitHub <noreply@github.com> 2016-10-20 11:38:58 +0200
commit9ffd56ea68caaaff49efefacf501e07298eca7e2 (patch)
tree8c8448b652b0280265c98d42c81348d2c0dad409 /lib/lib_rss.php
parent8a45743b9036078344ea362b183358f8ca8e4dd3 (diff)
parent7f2b0439ec4158ee7d78571d60e9bcc995e87cac (diff)
Merge pull request #1335 from Alkarex/guid-ascii-bug
guid and urls should not contain low/high characters
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index b18512484..75046fd54 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -83,6 +83,9 @@ function checkUrl($url) {
}
}
+function safe_ascii($text) {
+ return filter_var($text, FILTER_DEFAULT, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH);
+}
/**
* Test if a given server address is publicly accessible.