diff --git a/l.php b/l.php index 150048429a832048acc3f532bf41812387c6f271..b6a47ff84cdd95ed8501556cc75a8f73b63a2258 100644 --- a/l.php +++ b/l.php @@ -23,6 +23,14 @@ if (!($url=trim($_GET['url']))) $check = (strpos($url, '//') === 0) ? 'http:' . $url : $url; if (!Validator::is_url($check) || !$ost->validateLinkToken($_GET['auth'])) Http::response(403, 'URL link not authorized'); -else +elseif (strpos($_SERVER['HTTP_ACCEPT'], 'text/html') === false) Http::redirect($url); ?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> + <meta http-equiv="refresh" content="0;URL=<?php echo $url; ?>"/> +</head> +<body/> +</html> diff --git a/scp/l.php b/scp/l.php index 8e0dd28b7bb5e264d0ad0fc4e2642508eac38eb9..f05349be04db6204b5f2de494908a31ea19cfa02 100644 --- a/scp/l.php +++ b/scp/l.php @@ -23,6 +23,14 @@ if (!($url=trim($_GET['url']))) $check = (strpos($url, '//') === 0) ? 'http:' . $url : $url; if (!Validator::is_url($check) || !$ost->validateLinkToken($_GET['auth'])) Http::response(403, 'URL link not authorized'); -else +elseif (strpos($_SERVER['HTTP_ACCEPT'], 'text/html') === false) Http::redirect($url); ?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"/> + <meta http-equiv="refresh" content="0;URL=<?php echo $url; ?>"/> +</head> +<body/> +</html>