wp/wp-includes/SimplePie/Misc.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-includes/SimplePie/Misc.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/SimplePie/Misc.php	Wed Sep 21 18:19:35 2022 +0200
@@ -364,11 +364,12 @@
 		}
 
 		// Check that the encoding is supported
-		if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
+		if (!in_array($input, mb_list_encodings()))
 		{
 			return false;
 		}
-		if (!in_array($input, mb_list_encodings()))
+
+		if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
 		{
 			return false;
 		}