diff options
author | dakkar <dakkar@luxion> | 2006-02-15 12:22:58 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2006-02-15 12:22:58 +0000 |
commit | b6c9d7fcca0e2d77216c6d877c9de3c037d1f22b (patch) | |
tree | de853b414e1c0af54334117918fe417f0a8de19c /GroLUG/lib/GroLUG.pm | |
parent | preparato per il deploy (diff) | |
download | IscrittiGroLUG-b6c9d7fcca0e2d77216c6d877c9de3c037d1f22b.tar.gz IscrittiGroLUG-b6c9d7fcca0e2d77216c6d877c9de3c037d1f22b.tar.bz2 IscrittiGroLUG-b6c9d7fcca0e2d77216c6d877c9de3c037d1f22b.zip |
* 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
Diffstat (limited to 'GroLUG/lib/GroLUG.pm')
-rw-r--r-- | GroLUG/lib/GroLUG.pm | 8 |
1 files changed, 7 insertions, 1 deletions
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; |