Menu

#2 penemo-admin.cgi doesn't use dir_cgibin config item

v1.0_(example)
open
nobody
None
5
2003-07-15
2003-07-15
Anonymous
No

Hi.

Email dpmott@sep.com if you have any questions about
this bug report.

If you specify anything but this in the penemo config file:

dir_cgibin /cgi-bin/

then penemo-admin.cgi will break if you try to submit a
global pause request.

Here's the fix, look for lines with "#!!!":

# prints html for to get time to pause agent for.
sub get_time {
my ($agent, $global) = @_;
my $dir_cgibin = $conf->get_dir_cgibin(); # !!!
print header;
print "<HEAD><TITLE>pause
$agent</TITLE></HEAD>\n";
print '<BODY BGCOLOR="#000000"
TEXT="#AAAADD">', "\n";
print '<CENTER>';
print ' <BR>', "\n";
unless ($global) {
print "<FONT SIZE=3><B>pausing
agent: $agent</B></FONT><BR>\n";
}
print "<FONT SIZE=2>\n";
print ' <BR>', "\n";
print 'current server time: ', "$date<BR>\n";
print "<FORM METHOD=\"Post\"
action=\"$dir_cgibin/penemo-admin.cgi\">\n"; # !!!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.