From 51c71edf1e8571a66457d6dda38dc8b15ca4f17d Mon Sep 17 00:00:00 2001 From: Terence Eden Date: Fri, 16 Feb 2024 09:00:52 +0000 Subject: [PATCH] Remove unnecessary code --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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?