diff --git a/index.php b/index.php index 17f1106..606c21c 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ // Routing: // The .htaccess changes /whatever to /?path=whatever // This runs the function of the path requested. - $path = $_GET["path"]; + !empty( $_GET["path"] ) ? $path = $_GET["path"] : die(); switch ($path) { case "": die(); @@ -203,7 +203,6 @@ // Get the parameters $inbox_id = $inbox_message["id"]; $inbox_actor = $inbox_message["actor"]; - $inbox_url = parse_url( $inbox_actor, PHP_URL_SCHEME ) . "://" . parse_url( $inbox_actor, PHP_URL_HOST ); $inbox_host = parse_url( $inbox_actor, PHP_URL_HOST ); // Does this account have any followers?