[Nagios-Plugin] Fixed rt.cpan.org bug #77399, No space allowed in ...

"Nagios Plugin Development" <[email protected]> Fri, 23 Aug 2013 07:50:19 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: Nagios-Plugin
 Branch: master
 Commit: 1cd8d1c52cbd47121f344c4074aec84653f412ce
 Author: Richard Leitner <[email protected]>
   Date: Fri Aug 23 08:43:17 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/Nagios-Plugin;a=commit;h=1cd8d1c

Fixed rt.cpan.org bug #77399, No space allowed in section names

Now allow the section names to contain all characters except "@"

---

 lib/Nagios/Plugin/Getopt.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm
index f910c4b..22ff642 100644
--- a/lib/Nagios/Plugin/Getopt.pm
+++ b/lib/Nagios/Plugin/Getopt.pm
@@ -338,7 +338,7 @@ sub _process_extra_opts
     my $file = '';
 
     # Parse section@file
-    if ($extopts =~ m/^(\w*)@(.*?)\s*$/) {
+    if ($extopts =~ m/^([^@]*)@(.*?)\s*$/) {
       $section = $1;
       $file = $2;
     }


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk