From 24551e4b695cbaae96a6a781e239903197709f28 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 8 Nov 2010 23:11:44 +0000 Subject: [PATCH] fix bug in version checking code after recent change --- trunk/cgi-bin/pgstatus.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trunk/cgi-bin/pgstatus.pl b/trunk/cgi-bin/pgstatus.pl index a416f27..481eb5a 100755 --- a/trunk/cgi-bin/pgstatus.pl +++ b/trunk/cgi-bin/pgstatus.pl @@ -239,20 +239,21 @@ if ($min_script_version) } } -if ($min_web_script_version) +if ($min_web_script_version && ! ($client_conf->{script_version} eq 'REL_4.3')) { $client_conf->{web_script_version} ||= '0.0'; my $cli_ver = $client_conf->{web_script_version} ; $cli_ver =~ s/^REL_//; - my ($minmajor,$minminor) = split(/\./,$min_script_version); + my ($minmajor,$minminor) = split(/\./,$min_web_script_version); my ($smajor,$sminor) = split(/\./,$cli_ver); if ($minmajor > $smajor || ($minmajor == $smajor && $minminor > $sminor)) { print "Status: 461 web script version too low\nContent-Type: text/plain\n\n"; print "Web Script version is below minimum required\n", - "Reported version: $client_conf->{web_script_version},", - "Minumum version required: $min_web_script_version\n"; + "Reported version: $client_conf->{web_script_version}, ", + "Minumum version required: $min_web_script_version\n" + ; $db->disconnect; exit; } -- 2.30.2