浏览代码

[domains] add exit after redirect (#6366)

agree 3 年之前
父节点
当前提交
50403d9f49
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/domains/domains.php

+ 1 - 0
core/domains/domains.php

@@ -33,6 +33,7 @@
 //redirect admin to app instead
 	if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php") && !permission_exists('domain_all') && !is_cli()) {
 		header("Location: ".PROJECT_PATH."/app/domains/domains.php");
+		exit;
 	}
 
 //change the domain