diff options
| author | 2016-10-20 01:38:23 +0200 | |
|---|---|---|
| committer | 2016-10-20 01:38:23 +0200 | |
| commit | 7f2b0439ec4158ee7d78571d60e9bcc995e87cac (patch) | |
| tree | 8c8448b652b0280265c98d42c81348d2c0dad409 /lib/lib_rss.php | |
| parent | 1893fc61e0e576519f878267fd877247445d1055 (diff) | |
Extract function safe_ascii()
Diffstat (limited to 'lib/lib_rss.php')
| -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. |
