Cast length to int. Props josephscott. fixes #12046

git-svn-id: http://svn.automattic.com/wordpress/trunk@12870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-27 14:06:06 +00:00
parent 19aa0c798c
commit ca04c9d349
1 changed files with 1 additions and 1 deletions

View File

@ -2556,7 +2556,7 @@ class wp_xmlrpc_server extends IXR_Server {
foreach ( (array) $val as $enc ) {
$encdata = split("\n", $enc);
$enclosure['url'] = trim(htmlspecialchars($encdata[0]));
$enclosure['length'] = trim($encdata[1]);
$enclosure['length'] = (int) trim($encdata[1]);
$enclosure['type'] = trim($encdata[2]);
break 2;
}