Skip to content

Commit 1709895

Browse files
committed
Cast length to int. Props josephscott. fixes WordPress#12046
git-svn-id: https://develop.svn.wordpress.org/trunk@12870 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 63ed425 commit 1709895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xmlrpc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,7 @@ function mw_getPost($args) {
25562556
foreach ( (array) $val as $enc ) {
25572557
$encdata = split("\n", $enc);
25582558
$enclosure['url'] = trim(htmlspecialchars($encdata[0]));
2559-
$enclosure['length'] = trim($encdata[1]);
2559+
$enclosure['length'] = (int) trim($encdata[1]);
25602560
$enclosure['type'] = trim($encdata[2]);
25612561
break 2;
25622562
}

0 commit comments

Comments
 (0)