X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fgraphs%2Ftools%2Fdraw_graph.cgi;h=d5d5b4a82ac0d25efde06a224e46d518b02ca25f;hb=10434de696a721d9ea1b4eddc4169d601ee671e5;hp=9f24c7a071e7b95c416dd5bba5d7d8b3891b5fe0;hpb=e85bc43c20254aa85463748eeb95e2e60ed0ccf1;p=helm.git diff --git a/helm/graphs/tools/draw_graph.cgi b/helm/graphs/tools/draw_graph.cgi index 9f24c7a07..d5d5b4a82 100755 --- a/helm/graphs/tools/draw_graph.cgi +++ b/helm/graphs/tools/draw_graph.cgi @@ -22,7 +22,7 @@ while (my $c = $d->accept) { my $http_query = $r->url->equery; my $cgi = new CGI("$http_query"); my $url = $cgi->param('url'); - $url = uri_unescape($url).'¶m.PID='.$$; + $url = $url.'¶m.PID='.$$; print "URL: $url\n"; my $ua = LWP::UserAgent->new; @@ -41,6 +41,11 @@ while (my $c = $d->accept) { print "Returning GIF: $pid\n"; $c->send_file_response("prova.$pid.gif"); system("make PID=$pid clean ; rm -f prova0.$pid.dot"); + } elsif ($r->method eq 'GET' && $r->url->path eq "/help"){ + print "Help requested!\n"; + my $response = new HTTP::Response; + $response->content("Graph Drawer Version: ???"); + $c->send_response($response); } else { $c->send_error(RC_FORBIDDEN) }