diff options
author | Niko Tyni <ntyni@iki.fi> | 2005-11-14 22:57:00 +0100 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2005-11-14 22:57:00 +0100 |
commit | 334ec7968c236ad0bc7937b4ab87f5abd7c116a2 (patch) | |
tree | ec31daf96f57780299200013c1259e3fd05303a0 /lib | |
parent | fdf5205ed32123872ff09d475dfdd9190eaade9d (diff) | |
download | smokeping-334ec7968c236ad0bc7937b4ab87f5abd7c116a2.tar.gz smokeping-334ec7968c236ad0bc7937b4ab87f5abd7c116a2.tar.xz |
* (trunk)/
lib/Smokeping.pm,
CHANGES:
+ use the 'cgiurl' variable from the 'General' section for all CGI self-refering links
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 ), |