X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cgi%2Fpkgreport.cgi;h=d29c3abc7ff56943a7a0a2196be16e5560bda857;hb=969cae121449f73db709ed09894c7ca985833a21;hp=b70a5cb6b997dd06ee3629471fe055ec2b90384b;hpb=e910f5ba8f8d11a9a23b35f7bea7e667beddec6b;p=debbugs.git diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index b70a5cb..d29c3ab 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -13,6 +13,14 @@ use warnings; use strict; +# Sanitize environent for taint +BEGIN{ + delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; +} + +# STDOUT should be in utf8 mode +binmode(STDOUT,':utf8'); + use POSIX qw(strftime nice); use Debbugs::Config qw(:globals :text :config);