cgi: allow conf.cgi_docroot_path to be NULL
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 8 Oct 2015 17:45:00 +0000 (19:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 25 Oct 2016 14:32:50 +0000 (16:32 +0200)
commit577c20c5f780a241d526b16345cf42ea81b675ab
tree1c5601c22ebdfc0147474db064a3d7d0a512c682
parentc0b5444b533e7177394ceaa247de4495307f72d6
cgi: allow conf.cgi_docroot_path to be NULL

The check_cgi_path() function would segfault if we ever support running
uhttpd without any CGI prefix.

Add a check to prevent running uh_patch_match() when the prefix is unset.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
cgi.c