# HG changeset patch # User Neal Gompa # Date 1270237695 18000 # Node ID 446f1fad8dd4c3143fff75779aece641df51bdf8 # Parent 25e13d35cd769788339fe3fc268996842e97531a# Parent f76cf260e9faae23d2c62aa4a8e0da87c36d7f56 Merge in changes about legal marks diff -r f76cf260e9fa -r 446f1fad8dd4 includes/http.php --- a/includes/http.php Fri Apr 02 14:43:37 2010 -0500 +++ b/includes/http.php Fri Apr 02 14:48:15 2010 -0500 @@ -370,10 +370,8 @@ $newline = "\r\n"; if ( $this->debug ) + { echo '

Connection opened. Writing main request to socket. Raw socket data follows.

';
-		
-		if ( $this->debug )
-		{
 			echo '
'; echo '

' . __CLASS__ . ': Sending request

Request parameters:

'; echo "

Headers:

$headers
"; @@ -386,7 +384,7 @@ $portline = ( $this->port == 80 ) ? '' : ":$this->port"; $this->_fputs($connection, "{$this->method} {$this->uri}{$get} HTTP/1.1{$newline}"); - $this->_fputs($connection, "Host: {$this->host}$portline{$newline}"); + $this->_fputs($connection, "Host: {$this->host}{$portline}{$newline}"); $this->_fputs($connection, $headers); $this->_fputs($connection, $cookies); @@ -528,7 +526,17 @@ { echo "Pulling response using fread(), size $size\n"; } - $this->response .= fread($this->socket, $size); + $basesize = strlen($this->response); + while ( strlen($this->response) - $basesize < $size ) + { + $remaining_bytes = $size - (strlen($this->response) - $basesize); + $this->response .= fread($this->socket, $remaining_bytes); + if ( $this->debug ) + { + $remaining_bytes = $size - (strlen($this->response) - $basesize); + echo "
Received " . (strlen($this->response) - $basesize) . " of $size bytes ($remaining_bytes remaining)...\n"; + } + } } else { diff -r f76cf260e9fa -r 446f1fad8dd4 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Fri Apr 02 14:43:37 2010 -0500 +++ b/plugins/SpecialUserPrefs.php Fri Apr 02 14:48:15 2010 -0500 @@ -1157,6 +1157,7 @@ $db->_die('Avatar CP switching user avatar off'); $has_avi = 1; + $avi_type = 'grv'; $quiet || print '
' . $lang->get('usercp_avatar_gravatar_success') . '
'; $had_a_boo_boo = false; break;