Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Mini CPAN distribution.

Report information
The Basics
Id: 36302
Status: resolved
Priority: 0/
Queue: CPAN-Mini

People
Owner: Nobody in particular
Requestors: ank [...] ank.com.ar
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.571
Fixed in: (no value)



Subject: [PATCH] Reject configuration keys that have no non-whitespace values; strip last spaces of each configuration line.
Download (untitled) / with headers
text/plain 425b
I my .minicpanrc I mistakenly added the line: local: /home/ank/minicpan with a trailing space. Minicpan then created a directory called "minicpan " (with the trailing space.) Diff for Mini.pm: 583c583 < if (/\A(\w+):\s*(.+)\Z/sm) { $config{$1} = $2; } --- Show quoted text
> if (/\A(\w+):\s*(\S.*?)\s*\Z/sm) { $config{$1} = $2; }
This also requires the value to contain at least one non-whitespace charactrer. - Andres N. Kievsky
fixed -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.