php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77804
Patch patch.txt revision 2019-03-27 08:32 UTC by 1085242202 at qq dot com

Patch patch.txt for *General Issues Bug #77804

Patch version 2019-03-27 08:32 UTC

Return to Bug #77804 | Download this patch
Patch Revisions:

Developer: 1085242202@qq.com



resolvent:

function parse_url_patch($url){
	$ret = parse_url($url);
	if(stripos($ret["host"],"\\") !== false){
		$ret["host"] = "illegal host";
	} 
	return $ret;
}

var_dump(parse_url_patch('http://baidu.com\pinyin.sogou.com'));
var_dump(parse_url_patch('https://pinyin.sogou.com/proxy'));
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC