Browse Source

Sanitize language obtained for an entry.

Tobias Kappé 1 year ago
parent
commit
3bbaf902ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/rssutils.php

+ 1 - 1
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);