Skip to content
Snippets Groups Projects
Commit 15cda47f authored by deuce's avatar deuce
Browse files

Use prep_dir to convert cgi_dir to an absolute path.

parent f0dadb70
No related branches found
No related tags found
No related merge requests found
......@@ -3016,6 +3016,7 @@ void DLLCALL web_server(void* arg)
/* Change to absolute path */
prep_dir(startup->ctrl_dir, root_dir, sizeof(root_dir));
prep_dir(root_dir, error_dir, sizeof(error_dir));
prep_dir(root_dir, cgi_dir, sizeof(cgi_dir));
/* Trim off trailing slash/backslash */
if(IS_PATH_DELIM(*(p=lastchar(root_dir)))) *p=0;
......
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