Middleware::StackTrace could produce Wide char HTML #95

Closed
miyagawa opened this Issue Mar 24, 2010 · 2 comments

Comments

Projects
None yet
2 participants
Owner

miyagawa commented Mar 24, 2010

If an exception and stacktrace contains the wide characters Devel::StackTrace::AsHTML generates HTML with UTF-8 flags and that could cause some web servers crash on syswrite.

Member

tokuhirom commented Mar 29, 2010

failing test code is here:

use strict;
use warnings;
use utf8;
use Test::More;
use Plack::Middleware::StackTrace;

my $app = Plack::Middleware::StackTrace->wrap(
    sub { die "ばけらった" }
);
my $res = $app->(+{});
ok !utf8::is_utf8($res->[2]->[0]), 'non-flagged value as required';

done_testing;
 
Owner

miyagawa commented Mar 29, 2010

Encode exceptions in utf-8 in case they include wide characters. Closed by 4b1e59d

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment