From 3bbaf902abe70e28645dcd1bba20705e8db4676b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Kapp=C3=A9?= Date: Sun, 12 Aug 2018 16:12:34 +0100 Subject: [PATCH] Sanitize language obtained for an entry. --- classes/rssutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/rssutils.php b/classes/rssutils.php index 6fa1e9f4..af5fd057 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -637,7 +637,7 @@ class RSSUtils { $entry_link = rewrite_relative_url($site_url, $item->get_link()); - $entry_language = $item->get_language(); + $entry_language = mb_substr(trim($item->get_language()), 0, 2); _debug("title $entry_title", $debug_enabled); _debug("link $entry_link", $debug_enabled); -- 2.39.5