From bc2d72c5518b62a9481579a73a42100394d36eb3 Mon Sep 17 00:00:00 2001 From: Michael Torbert Date: Fri, 8 Jul 2016 15:45:37 -0400 Subject: [PATCH] remove sanitize_server_vars function in favor of other stuff --- modules/aioseop_bad_robots.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/modules/aioseop_bad_robots.php b/modules/aioseop_bad_robots.php index 9dd135d03..975d65335 100644 --- a/modules/aioseop_bad_robots.php +++ b/modules/aioseop_bad_robots.php @@ -137,26 +137,6 @@ function validate_ip( $ip ) { } - /** - * Sanitize server vars like http_user_agent remote_addr. - * - * @param $server_var - * - * @since 2.3.7 - * - * @return string - */ - function sanitize_server_vars( $server_var ) { - - if ( preg_match( '/\<(\?php|script)/', $server_var ) ) { - return 'Looks like you have an XSS attempt'; - } - - $server_var = strip_tags( $server_var ); - - return $server_var; - } - function generate_htaccess_blocklist() { if ( ! $this->option_isset( 'htaccess_rules' ) ) {