From: Ævar Arnfjörð Bjarmason Date: Thu, 03 Jun 2010 16:00:09 GMT Subject: Re: [PATCH GSoC 1/3] gitweb: Create Gitweb::Config module Message-ID: In-Reply-To: <1275573356-21466-1-git-send-email-pavan.sss1991@gmail.com> On Thu, Jun 3, 2010 at 13:55, Pavan Kumar Sunkara wrote: > +sub evaluate_gitweb_config { > +       # die if there are errors parsing config file > +       if (-e $GITWEB_CONFIG) { > +               do $GITWEB_CONFIG; > +               die $@ if $@; > +       } elsif (-e $GITWEB_CONFIG_SYSTEM) { > +               do $GITWEB_CONFIG_SYSTEM; > +               die $@ if $@; > +       } > +} I think I mentioned this before, but why not *optionally* use Config::Any (or something similar) and if it doesn't exists fall back on do(), and document this, along with a way to disable Perl execution. It'd be completely compatible, but admins could then allow someone to edit a gitweb config file without opening themselves up to that someone having permission to execute code as the webserver. Check out Gitalist (the Catalyst rewrite of Gitweb) for some prior art.