Re:Show HN: My embeddable C/C++ webserver
by udp on Friday May 06, 2011 @03:38PM
(#2522179)
Thanks, I changed it to block ".." in any form.
[ Parent
| on HN ]
Doesn't this also read right off the end of the string?
No, it will hit the NULL terminator and short circuit.
No, because if i[1] is 0 (the null terminator), i[1] == '.' will fail.