Cast length to int. Props josephscott. fixes #12046

git-svn-id: https://develop.svn.wordpress.org/trunk@12870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-27 14:06:06 +00:00
parent 63ed4250a9
commit 1709895c3a
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;
}