diff options
author | John 'Warthog9' Hawley <warthog9@kernel.org> | 2010-01-30 23:30:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-30 15:53:53 -0800 |
commit | 24d4afcdc79cb250131841040b803401d261a473 (patch) | |
tree | 73abb6d4697833971c0a5c8cb5fe1525c126ee39 /archive-tar.c | |
parent | gitweb: Makefile improvements (diff) | |
download | tgif-24d4afcdc79cb250131841040b803401d261a473.tar.xz |
gitweb: Check that $site_header etc. are defined before using them
If one of $site_header, $site_footer or $home_text is not defined, you
get extraneous errors in the web logs, for example (line wrapped for
better readibility):
[Wed Jan 13 16:55:42 2010] [error] [client ::1] [Wed Jan 13 16:55:42 2010]
gitweb.cgi: Use of uninitialized value $site_header in -f at
/var/www/gitweb/gitweb.cgi line 3287., referer: http://git/gitweb.cgi
This ensures that those variables are defined before trying to use it.
Note that such error can happen only because of an error in gitweb
config file; building gitweb.cgi can make mentioned variables holding
empty string (it is even the default), but they are still defined.
Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-tar.c')
0 files changed, 0 insertions, 0 deletions