|Subject:||CGI: test t/http.t fails, when HTTPS_PROXY is set|
I ran into this when trying to upgrade the CGI module via CPAN shell. Simply said, CGI's method https() returns every key of %ENV which matches the regex /^HTTPS(?:_|$)/ . So, HTTPS_PROXY is also returned, which breaks the test for https(), because it only expects HTTPS and HTTPS_KEYSIZE to be returned. Localizing %ENV at the beginning of the affected test block might fix this. See attached patch file for a fix. This issue exists at least since 3.47 (and also in 3.49, which wasn't available in the "broken in" list). I couldn't check 3.46, because I didn't find a package for that version. 3.45 is not affected, as it doesn't contain a test file t/http.t . I didn't check any other versions. This issue was already mentioned in the CGI queue:As it is the only ticket there (without any further action or comment), I thought to open this one in this queue. Forgive me, if I am wrong in doing so. Distribution: CGI-3.49 Perl Version: 5.10.1 OS: Gentoo Linux, CentOS 5.4
Message body not shown because it is not plain text.