]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/CGI.pm
string2id(): Also allow ":.-"
[deb/packages.git] / lib / Packages / CGI.pm
index 555c9e534944f80ecc02bfc1efa360f0fdabc3f6..b15e9edc63162da758865f07f4607bc8a6cf90f7 100644 (file)
@@ -4,7 +4,6 @@ use strict;
 use warnings;
 
 use Exporter;
-use Packages::Config;
 
 our @ISA = qw( Exporter );
 our @EXPORT = qw( DEBUG debug fatal_error get_mime );
@@ -349,8 +348,8 @@ sub printindexline {
 
 sub string2id {
     my $string = "@_";
-    
-    $string =~ s/[^\w]/_/g;
+
+    $string =~ s/[^\w:.-]/_/g;
     return $string;
 }