absint paged

git-svn-id: http://svn.automattic.com/wordpress/trunk@11606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-19 17:30:39 +00:00
parent f978e54cd9
commit ddad3fa4a5

View File

@ -1234,6 +1234,7 @@ class WP_Query {
$qv['day'] = absint($qv['day']);
$qv['w'] = absint($qv['w']);
$qv['m'] = absint($qv['m']);
$qv['paged'] = absint($qv['paged']);
$qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] ); // comma separated list of positive or negative integers
$qv['pagename'] = trim( $qv['pagename'] );
$qv['name'] = trim( $qv['name'] );