Skip to content

Commit

Permalink
Sanitize the admin page string
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Oct 21, 2011
1 parent d8a544e commit a0f3400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/adminhandler.php
Expand Up @@ -101,6 +101,7 @@ public function setup_admin_theme( $page, $type = '' )
public function act_admin()
{
$page = ( isset( $this->handler_vars['page'] ) && !empty( $this->handler_vars['page'] ) ) ? $this->handler_vars['page'] : 'dashboard';
$page = filter_var( $page, FILTER_SANITIZE_STRING );
if ( isset( $this->handler_vars['content_type'] ) ) {
$type = Plugins::filter( 'post_type_display', Post::type_name( $this->handler_vars['content_type'] ), 'singular' );
}
Expand Down

0 comments on commit a0f3400

Please sign in to comment.