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

Fix secureToken with PSGI servers

parent 200546b2
...@@ -106,7 +106,7 @@ sub run { ...@@ -106,7 +106,7 @@ sub run {
# Remove token # Remove token
eval 'use Apache2::Filter' unless ( $INC{"Apache2/Filter.pm"} ); 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( $r->{env}->{'psgi.r'}->add_output_filter(
sub { sub {
my $f = shift; my $f = shift;
......
Supports Markdown
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