X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fcgi%2Fmkindexcic.pl;h=a31f5ecfb08d2316e919fd37df760e0016c99950;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=e592b057962b4870245d7665436dcb69070a7d8c;hpb=7998b94e5f83fb3c9009762a875a0136bc4052ec;p=helm.git diff --git a/helm/cgi/mkindexcic.pl b/helm/cgi/mkindexcic.pl index e592b0579..a31f5ecfb 100755 --- a/helm/cgi/mkindexcic.pl +++ b/helm/cgi/mkindexcic.pl @@ -20,13 +20,14 @@ use CGI; my $cgi = new CGI($ENV{"REQUEST_URL"}); $uri = $cgi->param('cicuri'); +$getterURL = $cgi->param('getterURL'); $uri =~ s/(.*)\/$/$1/; # Remove a final slash if present $uri .= "/"; # Put a final slash $myurl = $cgi->url(); $cont = ""; # modified by side-effect by &callback my $ua = LWP::UserAgent->new; -my $request = HTTP::Request->new(GET => $getter_url."ls?format=txt&baseuri=".$uri); +my $request = HTTP::Request->new(GET => $getterURL."ls?format=txt&baseuri=".$uri); my $response = $ua->request($request, \&callback); @filenames = split(/\n/, $cont); @@ -38,7 +39,7 @@ if ($uri ne "cic:/") { $output = < [BACK] -Parent Directory +Parent Directory EOT } @@ -52,7 +53,7 @@ foreach $i (@filenames) { $output .= < [DIR] -$name +$name EOT @@ -62,7 +63,7 @@ EOT $output .= < [DIR] -$name +$name EOT } else {