Update webpagetool.php
This commit is contained in:
		
							parent
							
								
									6486e87dc0
								
							
						
					
					
						commit
						a2c20bed27
					
				|  | @ -525,9 +525,9 @@ if(!check_function_exists("get_adaptive_json")) { | ||||||
| 		$lines = array(); | 		$lines = array(); | ||||||
| 		foreach($data as $k=>$v) { | 		foreach($data as $k=>$v) { | ||||||
| 			if(is_array($v)) { | 			if(is_array($v)) { | ||||||
| 				$lines[] = sprintf("\"%s\":%s", addslashes($k), get_adaptive_json($v)); | 				$lines[] = sprintf("\"%s\":%s", make_safe_argument($k), get_adaptive_json($v)); | ||||||
| 			} else { | 			} else { | ||||||
| 				$lines[] = sprintf("\"%s\":\"%s\"", addslashes($k), addslashes($v)); | 				$lines[] = sprintf("\"%s\":\"%s\"", make_safe_argument($k), make_safe_argument($v)); | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		$result = "{" . implode(",", $lines) . "}"; | 		$result = "{" . implode(",", $lines) . "}"; | ||||||
|  | @ -548,7 +548,7 @@ if(!check_function_exists("get_webproxy_url")) { | ||||||
| if(!check_function_exists("get_web_user_agent")) { | if(!check_function_exists("get_web_user_agent")) { | ||||||
| 	function get_web_user_agent($ua="") { | 	function get_web_user_agent($ua="") { | ||||||
| 		if(empty($ua)) { | 		if(empty($ua)) { | ||||||
| 			$ua = "ReasonableFramework/1.2 (https://github.com/gnh1201/reasonableframework)"; | 			$ua = "ReasonableFramework/1.2-dev (https://github.com/gnh1201/reasonableframework)"; | ||||||
| 		} else { | 		} else { | ||||||
| 			$ua = make_safe_argument($ua); | 			$ua = make_safe_argument($ua); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 GitHub
							GitHub