wp/wp-includes/SimplePie/Misc.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   362 		{
   362 		{
   363 			$output = 'SJIS';
   363 			$output = 'SJIS';
   364 		}
   364 		}
   365 
   365 
   366 		// Check that the encoding is supported
   366 		// Check that the encoding is supported
       
   367 		if (!in_array($input, mb_list_encodings()))
       
   368 		{
       
   369 			return false;
       
   370 		}
       
   371 
   367 		if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
   372 		if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80")
   368 		{
       
   369 			return false;
       
   370 		}
       
   371 		if (!in_array($input, mb_list_encodings()))
       
   372 		{
   373 		{
   373 			return false;
   374 			return false;
   374 		}
   375 		}
   375 
   376 
   376 		// Let's do some conversion
   377 		// Let's do some conversion