avoid keeping running if a DOS attack is possible
parent
98f0d672df
commit
093f8534f1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue