Allow '-' (dash) in the retrieved project directory.
[www.jankratochvil.net.git] / project / ChangeLog.pm
index dbed17e..4cae2ac 100755 (executable)
@@ -26,18 +26,20 @@ use warnings;
 use My::Web;
 
 
-our $HTML_TEST=0;
+our $HTML_TEST="download";
+our $HTML_TEST_QUERY_STRING="cvs=MyWeb";
 
 sub handler
 {
 my $W=My::Web->init(
                "header_only"=>1,
                "args_check"=>{
-                               "cvs"=>'^[\w\d][\w\d/.]*$',
+                               "cvs"=>'^[\w\d][-\w\d/.]*$',
                                },
+               "content_type"=>"text/plain",
+               "http_safe"=>0, # cvs(1) downloads.
                );
 My::Web->heading();
-$W->{"r"}->content_type("text/plain");
 
 
 local *F;