View | Details | Raw Unified | Return to bug 24719
Collapse All | Expand All

(-)a/C4/Context.pm (-4 / +1 lines)
Lines 1109-1117 variable to be set correctly. Link Here
1109
1109
1110
sub set_remote_address {
1110
sub set_remote_address {
1111
    if ( C4::Context->config('koha_trusted_proxies') ) {
1111
    if ( C4::Context->config('koha_trusted_proxies') ) {
1112
        require CGI;
1112
        my $header = $ENV{'HTTP_X_FORWARDED_FOR'};
1113
        my $cgi    = CGI->new;
1114
        my $header = $cgi->http('HTTP_X_FORWARDED_FOR');
1115
1113
1116
        if ($header) {
1114
        if ($header) {
1117
            require Koha::Middleware::RealIP;
1115
            require Koha::Middleware::RealIP;
1118
- 

Return to bug 24719