From 13b03b232ba9a5b3c30784adc3a8bf8f03b90f63 Mon Sep 17 00:00:00 2001 From: hesch Date: Thu, 11 Feb 2021 17:38:39 +0100 Subject: refactor: remove referer checks, as they are no longer needed (replaced by csrf tokens) (#3432) --- lib/lib_install.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/lib_install.php') diff --git a/lib/lib_install.php b/lib/lib_install.php index f8b2ba969..e1a4c98dd 100644 --- a/lib/lib_install.php +++ b/lib/lib_install.php @@ -46,7 +46,6 @@ function checkRequirements($dbType = '') { $tmp = TMP_PATH && is_writable(TMP_PATH); $users = USERS_PATH && is_writable(USERS_PATH); $favicons = is_writable(join_path(DATA_PATH, 'favicons')); - $http_referer = is_referer_from_same_domain(); return array( 'php' => $php ? 'ok' : 'ko', @@ -67,10 +66,9 @@ function checkRequirements($dbType = '') { 'tmp' => $tmp ? 'ok' : 'ko', 'users' => $users ? 'ok' : 'ko', 'favicons' => $favicons ? 'ok' : 'ko', - 'http_referer' => $http_referer ? 'ok' : 'ko', 'message' => $message ?: '', 'all' => $php && $curl && $pdo && $pcre && $ctype && $dom && $xml && - $data && $cache && $tmp && $users && $favicons && $http_referer && $message == '' ? 'ok' : 'ko' + $data && $cache && $tmp && $users && $favicons && $message == '' ? 'ok' : 'ko' ); } -- cgit v1.2.3