Skip to content

Commit

Permalink
Do not call htmlspecialchars with null setup_slug.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuasha420 committed Nov 1, 2022
1 parent 3a9035c commit 1803281
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/Core/Admin/Screens.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ private function get_screens() {
'render_callback' => function( Context $context ) {
$is_view_only = ! $this->authentication->is_authenticated();

$setup_slug = htmlspecialchars( $context->input()->filter( INPUT_GET, 'slug' ) );
$setup_slug = $context->input()->filter( INPUT_GET, 'slug' );
if ( $setup_slug ) {
$setup_slug = htmlspecialchars( $setup_slug );
}
$reauth = $context->input()->filter( INPUT_GET, 'reAuth', FILTER_VALIDATE_BOOLEAN );
if ( $context->input()->filter( INPUT_GET, 'permaLink' ) ) {
?>
Expand Down

0 comments on commit 1803281

Please sign in to comment.