summaryrefslogtreecommitdiffstats
path: root/cgi/cgiextrapath.c
blob: 3cd3aa643532d1d6838ece6ffc83de2000649e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
** Copyright 2007 Double Precision, Inc.
** See COPYING for distribution information.
*/

/*
*/
#include	"cgi.h"
#include <stdlib.h>
#include <unistd.h>
#if	HAVE_UNISTD_H
#include	<unistd.h>
#endif

const char *cgiextrapath()
{
	const char *pi=getenv("PATH_INFO");

	if (!pi) pi="";
	return pi;
}