]> git.donarmstrong.com Git - debbugs.git/blobdiff - cgi/pkgreport.cgi
Stop URLs at " too. Thanks to Vincent Lefevre (Closes: #766354).
[debbugs.git] / cgi / pkgreport.cgi
index b70a5cb6b997dd06ee3629471fe055ec2b90384b..eb7a61a2101600c9196bed3ca1f8eafaf8e73293 100755 (executable)
 use warnings;
 use strict;
 
+# Sanitize environent for taint
+BEGIN{
+    delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
+}
+
+binmode(STDOUT,':encoding(UTF-8)');
 use POSIX qw(strftime nice);
 
 use Debbugs::Config qw(:globals :text :config);