Talk:Blacklist/@comment-137.248.3.124-20130108104046

From Request Tracker Wiki
Revision as of 05:40, 8 January 2013 by 137.248.3.124 (talk) (Created page with "You have to be carefull where to add # Add the configured blacklist addresses my $site_blacklist = $RT::Blacklist; if( $site_blacklist ) { '''@blacklist = split( /,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You have to be carefull where to add

# Add the configured blacklist addresses
 my $site_blacklist = $RT::Blacklist;
 if( $site_blacklist ) {
     @blacklist = split( /,/, $site_blacklist );
 }

because it overwrites @blacklist.

If @blacklist is already defined and set you can use:

# Add the configured blacklist addresses
 my $site_blacklist = $RT::Blacklist;
 if( $site_blacklist ) {
     push @blacklist, split( /,/, $site_blacklist );
 }