mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-18 17:57:20 +02:00
Simplify arg processing
git-svn-id: file:///home/jj/hercules.svn/trunk@777 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
13
httpserv.c
13
httpserv.c
@@ -255,15 +255,6 @@ CGIVAR **cgivar;
|
||||
}
|
||||
|
||||
|
||||
static void http_load_cgi_variables(WEBBLK *webblk)
|
||||
{
|
||||
if(webblk->post_arg)
|
||||
http_interpret_variable_string(webblk, webblk->post_arg, REQTYPE_POST);
|
||||
if(webblk->get_arg)
|
||||
http_interpret_variable_string(webblk, webblk->get_arg, REQTYPE_GET);
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
static void http_dump_cgi_variables(WEBBLK *webblk)
|
||||
{
|
||||
@@ -494,6 +485,7 @@ static void *http_request(FILE *hsock)
|
||||
pointer++;
|
||||
}
|
||||
*pointer = '\0';
|
||||
http_interpret_variable_string(webblk, webblk->post_arg, REQTYPE_POST);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -510,6 +502,7 @@ static void *http_request(FILE *hsock)
|
||||
if ((pointer=strchr(url,'?'))) {
|
||||
webblk->get_arg = strdup(pointer+1);
|
||||
*pointer = 0;
|
||||
http_interpret_variable_string(webblk, webblk->get_arg, REQTYPE_GET);
|
||||
}
|
||||
|
||||
while(url[0] == '/' && url[1] == '/')
|
||||
@@ -528,8 +521,6 @@ static void *http_request(FILE *hsock)
|
||||
while(*url == '/')
|
||||
url++;
|
||||
|
||||
http_load_cgi_variables(webblk);
|
||||
|
||||
#if 0
|
||||
http_dump_cgi_variables(webblk);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user