O
Ondra
I would like to know what is do the code below:
sub safe {
my $url = shift;
return 1 if ($url =~ /^(javascript|mailto):/is);
for (@safe) { #*******I cann't understand this
return 1 if ($url =~ /\w+:\/\/((\w|-)+\.)*$_/is);
}
return 0;
}
Thanks a lot
Ondrej
sub safe {
my $url = shift;
return 1 if ($url =~ /^(javascript|mailto):/is);
for (@safe) { #*******I cann't understand this
return 1 if ($url =~ /\w+:\/\/((\w|-)+\.)*$_/is);
}
return 0;
}
Thanks a lot
Ondrej