]> git.etc.gen.nz Git - spong.git/commitdiff
Fixed Ack URL problem in add_action_bar() with host and service not being added
authorStephen L Johnson <sjohnson@monsters.org>
Wed, 29 Dec 1999 20:17:09 +0000 (20:17 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Wed, 29 Dec 1999 20:17:09 +0000 (20:17 +0000)
to the HREF.

src/lib/Spong/Service.pm

index 13db7c2580308dd4d1c6b5f893b35ada038ea83b..ff1ba15c5ed0dadfaa762bfa723d8597cec757e5 100755 (executable)
@@ -338,11 +338,12 @@ sub _problem_message {
 sub add_action_bar {
    my( $self ) = shift;
    my $name = $self->host();
+   my $service = $self->name();
    my $message = &escape( "Host: $name, " . $self->_problem_message() );
 
    print "<hr>";
    print "<a href=\"telnet://$name\">Connect to Host</a> || ";
-   print "<a href=\"$main::WWWACK/$host/$service\">Acknowledge Problem</a> ";
+   print "<a href=\"$main::WWWACK/$name/$service\">Acknowledge Problem</a> ";
 
    if( $main::WWWCONTACT ) {
       print "|| <a href=\"$main::WWWCONTACT?host=$name&message=$message\">";