forked from Lainports/opnsense-ports
20 lines
766 B
C++
20 lines
766 B
C++
--- src/basic_fun.cpp.orig 2018-03-28 19:12:21 UTC
|
|
+++ src/basic_fun.cpp
|
|
@@ -8067,7 +8067,7 @@ template <typename Ty, typename T2> sta
|
|
{
|
|
// check if the data we get is a port this allows us to correctly parse things like a.com:80
|
|
p = e + 1;
|
|
- while (isdigit(*p)) p++;
|
|
+ while (std::isdigit(*p)) p++;
|
|
if ((*p == '\0' || *p == '/') && (p - e) < 7) goto parse_port;
|
|
urlstru->InitTag("SCHEME", DStringGDL(string(s, (e - s))));
|
|
length -= ++e - s;
|
|
@@ -8118,7 +8118,7 @@ template <typename Ty, typename T2> sta
|
|
parse_port:
|
|
p = e + 1;
|
|
pp = p;
|
|
- while (pp-p < 6 && isdigit(*pp)) pp++;
|
|
+ while (pp-p < 6 && std::isdigit(*pp)) pp++;
|
|
if (pp-p < 6 && (*pp == '/' || *pp == '\0'))
|
|
{
|
|
memcpy(port_buf, p, (pp-p));
|