diff --git a/share/html/Search/Results.html b/share/html/Search/Results.html index a83e62ad8eb..171b38d92b0 100755 --- a/share/html/Search/Results.html +++ b/share/html/Search/Results.html @@ -151,7 +151,7 @@ my $refresh = $session{'tickets_refresh_interval'} || RT->Config->Get('SearchResultsRefreshInterval', $session{'CurrentUser'} ); -if ($refresh and not $m->request_args->{CSRF_Token}) { +if (RT->Config->Get('RestrictReferrer') and $refresh and not $m->request_args->{CSRF_Token}) { my $token = RT::Interface::Web::StoreRequestToken( $session{'CurrentSearchHash'} ); $m->notes->{RefreshURL} = RT->Config->Get('WebURL') . "Search/Results.html?CSRF_Token="