Closed GoogleCodeExporter closed 9 years ago
the bug happens in js_path.cc, line 40, in function
std::string path_normalize(std::string path, std::string base)
all cases are not properly handled.
Original comment by holisme
on 19 Apr 2009 at 9:34
please use
pos -= 1;
instead of
pos -= 2;
in js_path.cc :
case '/':
case '\\':
if (state == 0) { state = 1; }
if (state == 2) {
pos -= 1;
result.erase(pos, 2);
}
break;
Original comment by holisme
on 19 Apr 2009 at 10:26
sorry i was not clear enough : the above correction is necessary when using
a path like : ./v8cgi.conf
pos -= 2; is a bug
pos -= 1; fixes it.
Original comment by holisme
on 20 Apr 2009 at 6:19
Fixed in revision 433. Thanks for a report!
Original comment by ondrej.zara
on 20 Apr 2009 at 6:33
Original issue reported on code.google.com by
holisme
on 19 Apr 2009 at 9:03