]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid keeping running if a DOS attack is possible
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:25:05 +0000 (13:25 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:25:05 +0000 (13:25 -0500)
IkiWiki/Plugin/po.pm

index 1955ac304fc0ce26a8150fdb12f81528321ba046..ce771abf817d9c5856e79107b3b2a4f1f2c88402 100644 (file)
@@ -10,16 +10,7 @@ use warnings;
 use strict;
 use IkiWiki 3.00;
 use Encode;
-BEGIN {
-       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::Common qw(nowrapi18n);
 use Locale::Po4a::Chooser;
 use Locale::Po4a::Po;
 use File::Basename;