absint paged

git-svn-id: https://develop.svn.wordpress.org/trunk@11606 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-06-19 17:30:39 +00:00
parent 9f59a3f223
commit 3a24e23c5c
1 changed files with 1 additions and 0 deletions

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'] );