X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb.pm;h=8cc8388798f1d2dec3b48f1d2fd483be1b41c890;hb=32bf807f4c912062de85f9beee5228a23014484d;hp=85bbf831de6fd811d83c6d571e07e635e8900e79;hpb=49c23244b1ba61909b726bb9189665a33027a1af;p=ndwebbie.git diff --git a/lib/NDWeb.pm b/lib/NDWeb.pm index 85bbf83..8cc8388 100644 --- a/lib/NDWeb.pm +++ b/lib/NDWeb.pm @@ -5,6 +5,10 @@ use warnings; use Catalyst::Runtime '5.70'; +#Need to preload, otherwise the first hit is slow +use CGI qw/:standard/; +escapeHTML(''); + # Set flags and add plugins for the application # # -Debug: activates the debug mode for very useful log messages @@ -49,6 +53,8 @@ __PACKAGE__->setup(qw/ Session::State::Cookie /); +__PACKAGE__->deny_access_unless('/users',[qw/admin_users/]); + =head1 NAME NDWeb - Catalyst based application