diff --git a/modules/aioseop_bad_robots.php b/modules/aioseop_bad_robots.php index bf3f6d198..07d26f211 100644 --- a/modules/aioseop_bad_robots.php +++ b/modules/aioseop_bad_robots.php @@ -190,7 +190,7 @@ function generate_htaccess_blocklist() { */ function filter_bad_referlist( $referlist ) { if ( $this->option_isset( 'edit_blocks' ) && $this->option_isset( 'block_refer' ) && $this->option_isset( 'referlist' ) ) { - $referlist = explode( "\n", $this->options["{$this->prefix}referlist"] ); + $referlist = preg_split('/\r\n|[\r\n]/', $this->options["{$this->prefix}referlist"] ); } return $referlist; @@ -203,7 +203,7 @@ function filter_bad_referlist( $referlist ) { */ function filter_bad_botlist( $botlist ) { if ( $this->option_isset( 'edit_blocks' ) && $this->option_isset( 'blocklist' ) ) { - $botlist = explode( "\n", $this->options["{$this->prefix}blocklist"] ); + $botlist = preg_split('/\r\n|[\r\n]/', $this->options["{$this->prefix}blocklist"] ); } return $botlist;