in reply to Web Site Mapper
You may want to change:
sub DISALLOWED_SCHEMES () { qw( mailto ) }to:
sub DISALLOWED_SCHEMES () { qw( mailto javascript ) }
Otherwise your script will try to spider javascript functions. This means you're also going to need to change:
next if grep { $uri->scheme eq $_ } DISALLOWED_SCHEMES;
to something like:
my @dissallowed = DISALLOWED_SCHEMES; foreach my $scheme (@dissallowed) { next MAINLOOP if ($uri->scheme eq $scheme); }
I forget whether or not a next works in a for loop, and don't really have time to look it up, so I used MAINLOOP and assumed the loop we're nexting is named.
Edited by BazB: close stray code tag.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Web Site Mapper
by hardburn (Abbot) on Feb 16, 2004 at 16:09 UTC | |
by Vautrin (Hermit) on Feb 16, 2004 at 16:20 UTC |