Commit abf27ad7 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Fix secureToken with PSGI servers

parent 200546b2
......@@ -106,7 +106,7 @@ sub run {
# Remove token
eval 'use Apache2::Filter' unless ( $INC{"Apache2/Filter.pm"} );
if ( $INC{"Apache2/Filter.pm"} ) {
if ( $INC{"Apache2/Filter.pm"} and defined $r->{env}->{'psgi.r'} ) {
$r->{env}->{'psgi.r'}->add_output_filter(
sub {
my $f = shift;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment