small patch for Net_URL

From: Date: Mon, 29 Apr 2002 01:02:07 +0000
Subject: small patch for Net_URL
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5861@lists.php.net to get a copy of this message
I would like to submit this small patch to Net_URL. The problem is that Net_URL checks HTTP_SERVER_VARS['HTTPS'], which may or may not exist, and if the key 'HTTP' doesn't exist, it throws an error. It is prefixed with a '@' to prevent error spam, but this doesn't help if you're using your own error reporting function. I don't think PEAR classes should throw any errors that arn't 'real' errors. Anyway, this small patch avoids the error if HTTP_SERVER_VARS['HTTPS'] doesn't exist. thanks, baba -- Baba Z Buehler <baba@BabaZ.com> http://BabaZ.com/ PGP KeyID: 0xA88A6D4C "Those who are willing to sacrifice freedom for security deserve neither." -Benjamin Franklin

« previous php.pear.dev (#5861) next »