WordPress.org

Make WordPress Core

Changeset 12637


Ignore:
Timestamp:
01/07/10 07:54:15 (6 years ago)
Author:
westi
Message:

Ensure that apage and num cannot have negative values. Fixes #11786 props Denis-de-Bernardy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r12632 r12637  
    309309    // List blogs 
    310310    default: 
    311         $apage = isset( $_GET['apage'] ) ? intval( $_GET['apage'] ) : 1; 
    312         $num = isset( $_GET['num'] ) ? intval( $_GET['num'] ) : 15; 
     311        $apage = ( isset($_GET['apage'] ) && intval( $_GET['apage'] ) ) ? absint( $_GET['apage'] ) : 1;  
     312        $num = ( isset($_GET['num'] ) && intval( $_GET['num'] ) ) ? absint( $_GET['num'] ) : 15;  
    313313        $s = wp_specialchars( trim( $_GET[ 's' ] ) ); 
    314314 
Note: See TracChangeset for help on using the changeset viewer.