apache - Is there a special case in Apache2 when calling a CGI and the URI includes a single query string parameter without a value? -
today got error , surprised since looked fine... i have cgi written in c++ accepts uris query string. query string selects page, etc. cgi installed in standard location ubuntu installation: /usr/lib/cgi-bin/snapmanager.cgi today finishing adding login screen , once logged in, wanted add logout link. link adds ?logout @ end of uri: http://www.example.com/cgi-bin/snapmanager.cgi?logout that failed. checking error log, got error saying "logout" appeared on command line. rather surprising, if ask me! tried with: http://www.example.com/cgi-bin/snapmanager.cgi?logout=now and worked expected. no logout on command line. i tried: http://www.example.com/cgi-bin/snapmanager.cgi?logout&host=foo and worked too. again, no logout on command line. however, if switch parameters position fails again: http://www.example.com/cgi-bin/snapmanager.cgi?host=foo&logout so looks apache2 calls cgi logout query string parameter on command line when 1 query strin...