Skip to content

Commit

Permalink
remove sanitize_server_vars function in favor of other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Jul 8, 2016
1 parent 9d06f1f commit bc2d72c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions modules/aioseop_bad_robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) ) {

Expand Down

0 comments on commit bc2d72c

Please sign in to comment.