Fixed http url markup, courtesy of Cokeman.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3023 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
603e2677f5
commit
a8ad49db87
1 changed files with 13 additions and 9 deletions
|
@ -318,31 +318,32 @@ static void HTTPSV_GenerateQTVStub(cluster_t *cluster, oproxy_t *dest, char *str
|
||||||
{
|
{
|
||||||
*s = 0;
|
*s = 0;
|
||||||
streamid++;
|
streamid++;
|
||||||
if (*streamid <= ' ')
|
if (*streamid >= 'a' && *streamid <= 'f')
|
||||||
break;
|
|
||||||
else if (*streamid >= 'a' && *streamid <= 'f')
|
|
||||||
*s += 10 + *streamid-'a';
|
*s += 10 + *streamid-'a';
|
||||||
else if (*streamid >= 'A' && *streamid <= 'F')
|
else if (*streamid >= 'A' && *streamid <= 'F')
|
||||||
*s += 10 + *streamid-'A';
|
*s += 10 + *streamid-'A';
|
||||||
else if (*streamid >= '0' && *streamid <= '9')
|
else if (*streamid >= '0' && *streamid <= '9')
|
||||||
*s += *streamid-'0';
|
*s += *streamid-'0';
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
*s <<= 4;
|
*s <<= 4;
|
||||||
|
|
||||||
streamid++;
|
streamid++;
|
||||||
if (*streamid <= ' ')
|
if (*streamid >= 'a' && *streamid <= 'f')
|
||||||
break;
|
|
||||||
else if (*streamid >= 'a' && *streamid <= 'f')
|
|
||||||
*s += 10 + *streamid-'a';
|
*s += 10 + *streamid-'a';
|
||||||
else if (*streamid >= 'A' && *streamid <= 'F')
|
else if (*streamid >= 'A' && *streamid <= 'F')
|
||||||
*s += 10 + *streamid-'A';
|
*s += 10 + *streamid-'A';
|
||||||
else if (*streamid >= '0' && *streamid <= '9')
|
else if (*streamid >= '0' && *streamid <= '9')
|
||||||
*s += *streamid-'0';
|
*s += *streamid-'0';
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
//don't let hackers try adding extra commands to it.
|
//don't let hackers try adding extra commands to it.
|
||||||
if (*s == '$' || *s == ';' || *s == '\r' || *s == '\n')
|
if (*s == '$' || *s == ';' || *s == '\r' || *s == '\n')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
streamid++;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
else if (*streamid == '$' || *streamid == ';' || *streamid == '\r' || *streamid == '\n')
|
else if (*streamid == '$' || *streamid == ';' || *streamid == '\r' || *streamid == '\n')
|
||||||
|
@ -399,14 +400,14 @@ static void HTTPSV_GenerateQWSVStub(cluster_t *cluster, oproxy_t *dest, char *me
|
||||||
{
|
{
|
||||||
*s = 0;
|
*s = 0;
|
||||||
streamid++;
|
streamid++;
|
||||||
if (*streamid <= ' ')
|
if (*streamid >= 'a' && *streamid <= 'f')
|
||||||
break;
|
|
||||||
else if (*streamid >= 'a' && *streamid <= 'f')
|
|
||||||
*s += 10 + *streamid-'a';
|
*s += 10 + *streamid-'a';
|
||||||
else if (*streamid >= 'A' && *streamid <= 'F')
|
else if (*streamid >= 'A' && *streamid <= 'F')
|
||||||
*s += 10 + *streamid-'A';
|
*s += 10 + *streamid-'A';
|
||||||
else if (*streamid >= '0' && *streamid <= '9')
|
else if (*streamid >= '0' && *streamid <= '9')
|
||||||
*s += *streamid-'0';
|
*s += *streamid-'0';
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
*s <<= 4;
|
*s <<= 4;
|
||||||
|
|
||||||
|
@ -419,7 +420,10 @@ static void HTTPSV_GenerateQWSVStub(cluster_t *cluster, oproxy_t *dest, char *me
|
||||||
*s += 10 + *streamid-'A';
|
*s += 10 + *streamid-'A';
|
||||||
else if (*streamid >= '0' && *streamid <= '9')
|
else if (*streamid >= '0' && *streamid <= '9')
|
||||||
*s += *streamid-'0';
|
*s += *streamid-'0';
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
|
streamid++;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue