Dot to underscore fix

ISOS6

Verified User
Joined
May 7, 2009
Messages
318
Location
Erbil, Tarin Hills, Iraq
Hello,

httpsocket.php the last function fetch_parsed_body() changes dots to underscore.

If someone needs to fix it, just add my code into httpsocket.php


PHP:
    /**
     * Return parsed body in array format (without converting dots and spaces to underscore).
     * @return array result parsed
     */	
	function fetch_parsed_body_nodots()
	{
		function DANODOT($string) { 
			 $bes1= explode("&", $string); 
			 foreach ($bes1 as $bes2) {
				 $bes2= explode("=",$bes2);
				 list($kilil, $beha) = array_map("urldecode", $bes2);
				 if(!empty($kilil)){
				 	$te[$kilil] = $beha; 
				 }
			 }
			 return $te; 
		}
		return DANODOT($this->result_body);
	}

And in your PHP script must call something like that: $result = $sock->fetch_parsed_body_nodots();
 
Back
Top