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

(-)a/Koha/Middleware/CSRF.pm (-1 / +3 lines)
Lines 72-77 sub call { Link Here
72
            }
72
            }
73
        }
73
        }
74
    }
74
    }
75
    elsif ( !exists $stateless_methods{$request_method} && !exists $stateful_methods{$request_method} ) {
76
        $error = sprintf "unknown or unsupported method %s", $request_method;
77
    }
75
78
76
    #NOTE: It is essential to check for this environmental variable.
79
    #NOTE: It is essential to check for this environmental variable.
77
    #NOTE: If we don't check for it, then we'll also throw an error for the "subrequest" that ErrorDocument uses to
80
    #NOTE: If we don't check for it, then we'll also throw an error for the "subrequest" that ErrorDocument uses to
78
- 

Return to bug 36863