News for hackers. Stuff that matters.
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.
Re:Show HN: My embeddable C/C++ webserver by tptacek on Friday May 06, 2011 @03:41PM (#2522190)
Doesn't this also read right off the end of the string?
Re:Show HN: My embeddable C/C++ webserver by zwp on Friday May 06, 2011 @03:48PM (#2522213)
No, it will hit the NULL terminator and short circuit.
Re:Show HN: My embeddable C/C++ webserver by udp on Friday May 06, 2011 @03:47PM (#2522208)
No, because if i[1] is 0 (the null terminator), i[1] == '.' will fail.
Re:Show HN: My embeddable C/C++ webserver by tptacek on Friday May 06, 2011 @04:01PM (#2522254)
Duh. Sorry.