본문으로 건너뛰기

보안서버 HTTPS 리다이렉트 처리 개선

PHP 8 · GODO25
변경 파일 수: 1개
변경 파일 목록
총 1개
변경 파일 코드
추가삭제
Component/SiteLink/SiteLink.php+1-1
변경 전SiteLink.php
\Cookie::del('GD5SESSID');
}
$refreshUrl = $this->getFullUrl('https', $this->_sslDomain, $this->_sslPort, Request::getRequestUri());
http_response_code(Response::HTTP_TEMPORARY_REDIRECT);
header('Location: ' . $refreshUrl);
exit();
} else {
 
변경 후SiteLink.php
\Cookie::del('GD5SESSID');
}
$refreshUrl = $this->getFullUrl('https', $this->_sslDomain, $this->_sslPort, Request::getRequestUri());
http_response_code(Response::HTTP_PERMANENTLY_REDIRECT);
header('Location: ' . $refreshUrl);
exit();
} else {