cvs: pear /HTTP HTTP.php package.xml
| From: | Michael Wallner | Date: | Mon, 07 Feb 2005 08:37:15 +0000 |
| Subject: | cvs: pear /HTTP HTTP.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29161@lists.php.net to get a copy of this message | ||
mike Mon Feb 7 03:37:15 2005 EDT
Modified files:
/pear/HTTP HTTP.php package.xml
Log:
* fixed bug #3378 (default proto is always https in absoluteURI() on IIS)
http://cvs.php.net/diff.php/pear/HTTP/HTTP.php?r1=1.39&r2=1.40&ty=u
Index: pear/HTTP/HTTP.php
diff -u pear/HTTP/HTTP.php:1.39 pear/HTTP/HTTP.php:1.40
--- pear/HTTP/HTTP.php:1.39 Tue Nov 30 04:18:04 2004
+++ pear/HTTP/HTTP.php Mon Feb 7 03:37:15 2005
@@ -16,7 +16,7 @@
// | Michael Wallner <mike@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: HTTP.php,v 1.39 2004/11/30 09:18:04 mike Exp $
+// $Id: HTTP.php,v 1.40 2005/02/07 08:37:15 mike Exp $
/**
* HTTP
@@ -27,7 +27,7 @@
* @category HTTP
* @license PHP License
* @access public
- * @version $Revision: 1.39 $
+ * @version $Revision: 1.40 $
*/
class HTTP
{
@@ -291,7 +291,11 @@
}
if (empty($protocol)) {
- $protocol = isset($_SERVER['HTTPS']) ? 'https' : 'http';
+ if (isset($_SERVER['HTTPS']) &&
!strcasecmp($_SERVER['HTTPS'], 'on')) {
+ $protocol = 'https';
+ } else {
+ $protocol = 'http';
+ }
if (!isset($port) || $port != intval($port)) {
$port = isset($_SERVER['SERVER_PORT']) ?
$_SERVER['SERVER_PORT'] : 80;
}
http://cvs.php.net/diff.php/pear/HTTP/package.xml?r1=1.33&r2=1.34&ty=u
Index: pear/HTTP/package.xml
diff -u pear/HTTP/package.xml:1.33 pear/HTTP/package.xml:1.34
--- pear/HTTP/package.xml:1.33 Tue Nov 30 04:15:02 2004
+++ pear/HTTP/package.xml Mon Feb 7 03:37:15 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.1">
-<!-- $Revision: 1.33 $ -->
+<!-- $Revision: 1.34 $ -->
<package version="1.0">
<name>HTTP</name>
<summary>Miscellaneous HTTP utilities</summary>
@@ -27,11 +27,12 @@
<release>
<version>1.3.4</version>
<state>stable</state>
- <date>2004-11-30</date>
+ <date>2005-02-00</date>
<notes>
<![CDATA[
* stripping CR/LF characters from $url in HTTP::absoluteURI()
* fixed bug #2851 (@'s trigger errorhandlers/debugger)
+* fixed bug #3378 (default proto is always https in absoluteURI() on IIS)
]]>
</notes>
<filelist>