From 2eeb845a9e07b1e083f1572b452cf69ee0fd9127 Mon Sep 17 00:00:00 2001 From: Nikhil Joshua Date: Tue, 12 Sep 2023 18:09:18 +0530 Subject: [PATCH] Replace deprecated filter param --- b2w-redirection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2w-redirection.php b/b2w-redirection.php index adfb58f..03d7a88 100644 --- a/b2w-redirection.php +++ b/b2w-redirection.php @@ -31,7 +31,7 @@ function rt_blogger_to_wordpress_add_option() { wp_enqueue_style( 'rt-blogger-to-wordpress-redirection-css', ( RT_B2WR_PLUGIN_URL . 'css/b2w-redirection.css' ), array(), filemtime( RT_B2WR_PLUGIN_DIR . 'css/b2w-redirection.css' ) ); - $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING ); + $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); if ( ! empty( $page ) && 'rt-blogger-to-wordpress-redirection' === $page ) { @@ -88,7 +88,7 @@ function rt_blogger_to_wordpress_redirection() { global $wpdb; - $b2w = filter_input( INPUT_GET, 'b2w', FILTER_SANITIZE_STRING ); + $b2w = filter_input( INPUT_GET, 'b2w', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); $b2w = ( ! empty( $b2w ) ) ? $b2w : false; if ( false === $b2w ) {