]> granicus.if.org Git - cgit/commit
segfault fix on some bogus requests
authorEric Wong <normalperson@yhbt.net>
Wed, 4 Jan 2012 09:01:51 +0000 (09:01 +0000)
committerLars Hjemli <hjemli@gmail.com>
Sun, 18 Mar 2012 09:26:31 +0000 (09:26 +0000)
commit21418ec42a9a2de4c2c22eca7a1183b311914eca
tree76466eb627a017c57686530f0458699cb60d5684
parent6a575b8900734a4640427416885e73c83af70736
segfault fix on some bogus requests

ctx.qry.head can be NULL in some cases due to bad requests
by weird bots.  I managed to reproduce with:

   PATH_INFO=/repo.git/shop.php QUERY_STRING=id=

Signed-off-by: Eric Wong <normalperson@yhbt.net>
ui-shared.c