]> ruin.nu Git - ndwebbie.git/commitdiff
ignore hostname in scan urls
authorMichael Andreen <harv@ruin.nu>
Mon, 8 Oct 2007 19:09:43 +0000 (21:09 +0200)
committerMichael Andreen <harv@ruin.nu>
Mon, 8 Oct 2007 19:09:43 +0000 (21:09 +0200)
NDWeb/Pages/AddIntel.pm

index 13659050c76122d2a211785cba341a8debf825fe..4d7ad6167a3f6170e0c7300926f3a5947e850e35 100644 (file)
@@ -47,7 +47,7 @@ sub render_body {
                        my $addpoint = $DBH->prepare('UPDATE users SET scan_points = scan_points + 1 WHERE uid = ? ');
                        my $intel = param('intel');
                        my @scans;
-                       while ($intel =~ m/http:\/\/game.planetarion.com\/.+?scan(?:_id)?=(\d+)/g){
+                       while ($intel =~ m{http://[\w.]+/.+?scan(?:_id)?=(\d+)}g){
                                my %scan;
                                $scan{Scan} = $1;
                                $scan{Message} = "Scan $1: ";