Sanitize language obtained for an entry.

This commit is contained in:
Tobias Kappé 2018-08-12 16:12:34 +01:00
parent 22a866edb5
commit 3bbaf902ab
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ class RSSUtils {
$entry_link = rewrite_relative_url($site_url, $item->get_link()); $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("title $entry_title", $debug_enabled);
_debug("link $entry_link", $debug_enabled); _debug("link $entry_link", $debug_enabled);