X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=spam%2Fspam_pickup.php;h=467611ab60a6cb1dfbe4a32818774aa556cf17d9;hb=33ca107092af276da1333a700c3171f58d5cb7eb;hp=e920158616b1cc26738f6768bbd9b78e4bf434e5;hpb=e6390adf20123b8ffb2dbc59f8a4cdc0e2dfb48f;p=pukiwiki%2Fpukiwiki_sandbox.git diff --git a/spam/spam_pickup.php b/spam/spam_pickup.php index e920158..467611a 100644 --- a/spam/spam_pickup.php +++ b/spam/spam_pickup.php @@ -1,5 +1,5 @@ http://nasty.example.org/?refer=victim.example.org and original - $string = preg_replace( - '#h?ttp://' . - '(' . - 'big5.51job.com' . '|' . - 'big5.china.com' . '|' . - 'big5.xinhuanet.com' . '|' . - ')' . - '/gate/big5' . - '/([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' . - '#i', // nasty.example.org - 'http://$2/?refer=$1 $0', // Preserve $0 or remove? + '([a-z0-9.%_-]+\.[a-z0-9.%_-]+)' . // nasty.example.org + '#i', + 'http://$2/?refer=$1 $0', // Preserve $0 or remove? $string );