diff --git a/Kernel/Output/HTML/Layout.pm b/Kernel/Output/HTML/Layout.pm index fa2bc9a90b..4545c31d4d 100644 --- a/Kernel/Output/HTML/Layout.pm +++ b/Kernel/Output/HTML/Layout.pm @@ -886,9 +886,6 @@ sub Login { Data => \%Param, ); - # remove the version tag from the header if configured - $Self->_DisableBannerCheck( OutputRef => \$Output ); - return $Output; } @@ -1611,9 +1608,6 @@ sub Header { Data => \%Param ); - # remove the version tag from the header if configured - $Self->_DisableBannerCheck( OutputRef => \$Output ); - return $Output; } @@ -4268,9 +4262,6 @@ sub CustomerHeader { Data => \%Param, ); - # remove the version tag from the header if configured - $Self->_DisableBannerCheck( OutputRef => \$Output ); - return $Output; } @@ -6010,20 +6001,6 @@ sub _BuildSelectionOutput { return $String; } -sub _DisableBannerCheck { - my ( $Self, %Param ) = @_; - - return 1 if !$Kernel::OM->Get('Kernel::Config')->Get('Secure::DisableBanner'); - return if !$Param{OutputRef}; - - # remove the version tag from the header - ${ $Param{OutputRef} } =~ s{ - ^ X-Powered-By: .+? Open \s Ticket \s Request \s System \s \(http .+? \)$ \n - }{}smx; - - return 1; -} - =head2 _RemoveScriptTags() This function will remove the surrounding