X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=NDWeb%2FPages%2FAddIntel.pm;h=4d7ad6167a3f6170e0c7300926f3a5947e850e35;hb=2d897bb31419753af8e33b992d46ed355c1a53cd;hp=01d28505919079799f19159358993d7f5ee81d40;hpb=d6c9085e748c4d61901aaea72f0e1546dcc7cdda;p=ndwebbie.git diff --git a/NDWeb/Pages/AddIntel.pm b/NDWeb/Pages/AddIntel.pm index 01d2850..4d7ad61 100644 --- a/NDWeb/Pages/AddIntel.pm +++ b/NDWeb/Pages/AddIntel.pm @@ -17,16 +17,16 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * #**************************************************************************/ -package ND::Web::Pages::AddIntel; +package NDWeb::Pages::AddIntel; use strict; use warnings FATAL => 'all'; use CGI qw/:standard/; -use ND::Web::Forum; -use ND::Web::Include; +use NDWeb::Forum; +use NDWeb::Include; -use base qw/ND::Web::XMLPage/; +use base qw/NDWeb::XMLPage/; -$ND::Web::Page::PAGES{addintel} = 'ND::Web::Pages::AddIntel'; +$NDWeb::Page::PAGES{addintel} = 'NDWeb::Pages::AddIntel'; sub render_body { my $self = shift; @@ -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: ";