Skip to content

Commit

Permalink
Allow for multiple instances of a single plugin by using plugin:0
Browse files Browse the repository at this point in the history
notation


git-svn-id: https://svn.perl.org/qpsmtpd/trunk@308 958fd67b-6ff1-0310-b445-bb7760255be9
  • Loading branch information
rspier committed Sep 7, 2004
1 parent 96d66b8 commit ec5e23a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Qpsmtpd.pm
Expand Up @@ -191,8 +191,9 @@ sub _load_plugins {
}
next;
}

my $plugin_name = $plugin;
$plugin =~ s/:\d+$//; # after this point, only used for filename

# Escape everything into valid perl identifiers
$plugin_name =~ s/([^A-Za-z0-9_\/])/sprintf("_%2x",unpack("C",$1))/eg;
Expand Down

0 comments on commit ec5e23a

Please sign in to comment.