From 334ec7968c236ad0bc7937b4ab87f5abd7c116a2 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Mon, 14 Nov 2005 21:57:00 +0000 Subject: * (trunk)/ lib/Smokeping.pm, CHANGES: + use the 'cgiurl' variable from the 'General' section for all CGI self-refering links --- lib/Smokeping.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index c5d0eef..09ff150 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -106,7 +106,7 @@ sub lnk ($$) { if ($q->isa('dummyCGI')) { return $path . ".html"; } else { - return ($q->script_name() || '') . "?target=" . $path; + return $cfg->{General}->{cgiurl} . "?target=" . $path; } } @@ -997,7 +997,7 @@ sub display_webpage($$){ { menu => target_menu($cfg->{Targets}, [@$open], #copy this because it gets changed - ($q->script_name() || '')."?target="), + $cfg->{General}->{cgiurl}."?target="), title => $tree->{title}, remark => ($tree->{remark} || ''), overview => get_overview( $cfg,$q,$tree,$open ), -- cgit v1.2.3-24-g4f1b