Skip to content
Snippets Groups Projects
Commit f14f014c authored by rswindell's avatar rswindell
Browse files

Added support for websrvr_t.cgi_dir[], a configurable array of directories

where all files are CGI-executable (default: "../cgi-bin").
parent 567c2ddf
No related branches found
No related tags found
No related merge requests found
......@@ -511,6 +511,9 @@ void sbbs_read_ini(
iniFreeStringList(web->cgi_ext);
web->cgi_ext
=iniGetStringList(fp,section,"CGIExtensions", "," ,".cgi");
iniFreeStringList(web->cgi_dir);
web->cgi_dir
=iniGetStringList(fp,section,"CGIDirectories", "," ,"../cgi-bin");
SAFECOPY(web->ssjs_ext
,iniGetString(fp,section,"JavaScriptExtension",".ssjs",value));
......
......@@ -69,6 +69,7 @@ typedef struct {
/* Paths */
char ssjs_ext[16]; /* Server-Side JavaScript file extension */
char** cgi_ext; /* CGI Extensions */
char** cgi_dir; /* CGI Directories (all files executable) */
char ctrl_dir[128];
char root_dir[128];
char error_dir[128];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment