avoid keeping running if a DOS attack is possible

master
Joey Hess 2009-01-26 13:25:05 -05:00
parent 98f0d672df
commit 093f8534f1
1 changed files with 1 additions and 10 deletions

View File

@ -10,16 +10,7 @@ use warnings;
use strict; use strict;
use IkiWiki 3.00; use IkiWiki 3.00;
use Encode; use Encode;
BEGIN { use Locale::Po4a::Common qw(nowrapi18n);
eval 'use Locale::Po4a::Common qw(nowrapi18n)';
if ($@) {
warning(sprintf(gettext('%s is too old, can not disable %s; '.
'a denial of service can thus be '.
'triggered by malicious content'),
'Locale::Po4a', 'Text::WrapI18N'));
eval 'use Locale::Po4a::Common';
}
}
use Locale::Po4a::Chooser; use Locale::Po4a::Chooser;
use Locale::Po4a::Po; use Locale::Po4a::Po;
use File::Basename; use File::Basename;