mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
fix(misc/tools.php): fix vuln
This commit is contained in:
parent
3719a922de
commit
26bfc87269
1 changed files with 2 additions and 9 deletions
|
|
@ -1,13 +1,6 @@
|
|||
<?php
|
||||
function get_root_domain($url)
|
||||
{
|
||||
$split_url = explode("/", $url);
|
||||
$base_url = $split_url[2];
|
||||
|
||||
$base_url_main_split = explode(".", strrev($base_url));
|
||||
$root_domain = strrev($base_url_main_split[1]) . "." . strrev($base_url_main_split[0]);
|
||||
|
||||
return $root_domain;
|
||||
function get_root_domain($url) {
|
||||
return parse_url($url, PHP_URL_HOST);
|
||||
}
|
||||
|
||||
function request($url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue