Skip to content

Commit a0f3400

Browse files
committed
Sanitize the admin page string
1 parent d8a544e commit a0f3400

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

handlers/adminhandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public function setup_admin_theme( $page, $type = '' )
101101
public function act_admin()
102102
{
103103
$page = ( isset( $this->handler_vars['page'] ) && !empty( $this->handler_vars['page'] ) ) ? $this->handler_vars['page'] : 'dashboard';
104+
$page = filter_var( $page, FILTER_SANITIZE_STRING );
104105
if ( isset( $this->handler_vars['content_type'] ) ) {
105106
$type = Plugins::filter( 'post_type_display', Post::type_name( $this->handler_vars['content_type'] ), 'singular' );
106107
}

0 commit comments

Comments
 (0)