Skip to content
Snippets Groups Projects
Commit 8e312d9b authored by deuce's avatar deuce
Browse files

Don't parse the incoming auth header, copy it out first (for internal

redirected authenticated hits)
parent 5b6df87e
Branches
Tags
No related merge requests found
......@@ -833,14 +833,16 @@ static BOOL check_ars(http_session_t * session)
char *password;
uchar *ar;
BOOL authorized;
char auth_req[MAX_REQUEST_LINE];
if(session->req.auth[0]==0) {
if(startup->options&WEB_OPT_DEBUG_RX)
lprintf(LOG_NOTICE,"%04d !No authentication information",session->socket);
return(FALSE);
}
SAFECOPY(auth_req,session->req.auth);
username=strtok(session->req.auth,":");
username=strtok(auth_req,":");
if(username==NULL)
username="";
password=strtok(NULL,":");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment