Commit 36715ef8 authored by Baligh GUESMI's avatar Baligh GUESMI
Browse files

Fixe browsers using a HTTPS proxy behind coova.



This fix is about parsing properly the GET tag when a HTTPS proxy is
used by the browser.
Signed-off-by: default avatarBaligh GUESMI <gasmibal@gmail.com>
parent d2a119fa
......@@ -2125,13 +2125,15 @@ static int redir_getreq(struct redir_t *redir, struct redir_socket_t *sock,
while (*p1 == ' ') p1++; /* Advance through additional white space */
/* A proxy request, skip over the initial URL */
if (!strncmp(p1, "http://", 7) && strlen(p1) > 8) {
/*
* A proxy request, skip over the initial URL
*/
p1 += 7;
while (*p1 && *p1 != '/') p1++;
}
else if (!strncmp(p1, "https://", 8) && strlen(p1) > 9) {
p1 += 8;
while (*p1 && *p1 != '/') p1++;
}
if (*p1 == '/') p1++;
else { syslog(LOG_ERR, "parse error"); return -1; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment