Skip Menu |

This queue is for tickets about the Ezmlm CPAN distribution.

Report information
The Basics
Id: 5571
Status: resolved
Priority: 0/
Queue: Ezmlm

People
Owner: Nobody in particular
Requestors: xerofun
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: 0.05



Subject: Problem with dash in owner or sender address
In Ezmlm.pm 0.04 on line 85 the options are split at every dash ("-\w+"). So when trying to supply an owner or sender address containing a dash i.e. someone@some-domain.com this domain is splitted in two parts ("someone@some" and "-domain.com") causing this error: "ezmlm-make: fatal: dir and dot must start with slash". This occurs because "-domain.com" is interpreted as an option which is of course wrong. This problem can be solved by adding a \s right in front of the -\w+ on line 85 of the module: --- foreach (split(/["'](.+?)["']|(-\w+)/, $commandline)) { +++ foreach (split(/["'](.+?)["']|(\s-\w+)/, $commandline)) { This assures, that an option is split and not every occurence of a dash, even in a domain.