From b6c9d7fcca0e2d77216c6d877c9de3c037d1f22b Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 15 Feb 2006 12:22:58 +0000 Subject: * migliorata formattazione delle date * escape di HTML su tutti i campi (evita XSS) * corretta gestione unicode (accentate nei nomi) git-svn-id: svn://luxion/repos/IscrittiGroLUG/trunk@194 fcb26f47-9200-0410-b104-b98ab5b095f3 --- GroLUG/lib/GroLUG.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'GroLUG/lib/GroLUG.pm') diff --git a/GroLUG/lib/GroLUG.pm b/GroLUG/lib/GroLUG.pm index f7c7751..bfc7986 100644 --- a/GroLUG/lib/GroLUG.pm +++ b/GroLUG/lib/GroLUG.pm @@ -7,7 +7,7 @@ use Catalyst qw{ Session Session::Store::DBI Session::State::Cookie Authentication Authentication::Store::Htpasswd Authentication::Credential::Password Authorization::Roles - HTML::Widget + HTML::Widget Unicode }; use Catalyst::Log::Log4perl; @@ -28,4 +28,10 @@ sub index : Private { } } +sub strdate { + my ($self,$date)=@_; + + return (ref $date) ? $date->strftime('%F') : ''; +} + 1; -- cgit v1.2.3