forked from Adleraci/adlerka.top
		
	exit on redirect
This commit is contained in:
		@@ -35,7 +35,7 @@ function initRouter(): bool
 | 
			
		||||
        // Page name is empty
 | 
			
		||||
        $needsRedirect = true;
 | 
			
		||||
        $routerRequest["page_name"] = $routerConfig["default_page"];
 | 
			
		||||
        echo "cuz page name";
 | 
			
		||||
        header("redirReason: cuz page name");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -54,7 +54,7 @@ function initRouter(): bool
 | 
			
		||||
        // Redirect with default page name
 | 
			
		||||
        header("Location: $redirectAddress");
 | 
			
		||||
        header("RedirHere: $redirectAddress");
 | 
			
		||||
        echo "false";
 | 
			
		||||
        header("redirReason: false");
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
    else{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user