diff options
author | Yorhel <git@yorhel.nl> | 2016-05-25 21:22:00 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-05-25 21:22:02 +0200 |
commit | f194b988a12ca8371b07996813b7350cc4c1f736 (patch) | |
tree | 35f845631fd7daecc7d966602d2abf6d9da74edb | |
parent | 1a0dac3bd9b3bc1e9cd3d9778756725d95046e55 (diff) |
Detach FCGI filehandles around Text::VimColor
Causes an error in FastCGI mode otherwise.
-rwxr-xr-x | index.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -214,7 +214,11 @@ sub _get_html { require Text::VimColor; require Encode; + my $r = $TUWF::OBJ->reqFCGI(); + $r->Detach() if $r; my $m = Text::VimColor->new(string => Encode::encode_utf8($p->{raw}), filetype => $p->{syntax})->marked(); + $r->Attach() if $r; + my $html = ''; foreach (@$m) { my $t = $e->(Encode::decode_utf8($_->[1])); |