diff options
| author | 2016-10-20 11:38:58 +0200 | |
|---|---|---|
| committer | 2016-10-20 11:38:58 +0200 | |
| commit | 9ffd56ea68caaaff49efefacf501e07298eca7e2 (patch) | |
| tree | 8c8448b652b0280265c98d42c81348d2c0dad409 /lib | |
| parent | 8a45743b9036078344ea362b183358f8ca8e4dd3 (diff) | |
| parent | 7f2b0439ec4158ee7d78571d60e9bcc995e87cac (diff) | |
Merge pull request #1335 from Alkarex/guid-ascii-bug
guid and urls should not contain low/high characters
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 3 |
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. |
