mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
19aa0c798c
commit
ca04c9d349
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user