Skip to content

Loading…

Update Roboo.pm - added /g modifier #7

Merged
merged 1 commit into from

2 participants

@fornex

Accepting multiple URIs in Roboo_whitelist

@fornex fornex Update Roboo.pm
Accepting multiple URIs in Roboo_whitelist
43bfaea
@yuri-gushin

Nice spot, thanks!

@yuri-gushin yuri-gushin merged commit 00e2779 into yuri-gushin:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 13, 2012
  1. @fornex

    Update Roboo.pm

    fornex committed
    Accepting multiple URIs in Roboo_whitelist
Showing with 1 addition and 1 deletion.
  1. +1 −1 Roboo.pm
View
2 Roboo.pm
@@ -122,7 +122,7 @@ sub init ($) {
my @whitelisted_networks = ($settings->{whitelist} =~ /IP\(([^)]+)\)/g);
$settings->{whitelisted_networks} = create_iprange_regexp(@whitelisted_networks) unless (not scalar @whitelisted_networks);
@{$settings->{whitelisted_useragents}} = ($settings->{whitelist} =~ /UA\('([^']+)'\)/g);
- @{$settings->{whitelisted_uris}} = ($settings->{whitelist} =~ /URI\('([^']+)'\)/);
+ @{$settings->{whitelisted_uris}} = ($settings->{whitelist} =~ /URI\('([^']+)'\)/g);
}
# Get RANDBITS for get_timeseed
use Config;
Something went wrong with that request. Please try again.