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

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Fri Aug 23 09:50:19 CEST 2013


 Module: Nagios-Plugin
 Branch: master
 Commit: 1cd8d1c52cbd47121f344c4074aec84653f412ce
 Author: Richard Leitner <me at g0hl1n.net>
   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 at file
-    if ($extopts =~ m/^(\w*)@(.*?)\s*$/) {
+    if ($extopts =~ m/^([^@]*)@(.*?)\s*$/) {
       $section = $1;
       $file = $2;
     }





More information about the Commits mailing list