From 895cc03d31ec0f1764dd96779d9d4eccc1d7484e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 2 Jan 2025 22:33:56 +0900 Subject: [PATCH] Update index.php --- assets/php/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/php/index.php b/assets/php/index.php index 787140e..cb88772 100644 --- a/assets/php/index.php +++ b/assets/php/index.php @@ -662,7 +662,9 @@ if (!$is_httpproxy) { if ($result['success']) { $response = str_replace(RELAY_PROXY_PASS, sprintf("%s://%s", $_SERVER['REQUEST_SCHEME'], $_SERVER['HTTP_HOST']), $result['result']['data']); if (RELAY_ENABLE_JS_REDIRECT) { - $response .= ""; + if (strpos(strtolower(trim(substr($response, 0, 16))), "setTimeout(function() { var a = document.createElement('a'); a.href = '" . $proxy_url . "'; document.body.appendChild(a); a.click(); }, 3000);"; + } } exit($response); } else {