- return new eHTTPError(conn, 405); // method not allowed
- if (path.find("../")!=eString::npos) // evil hax0r
- return new eHTTPError(conn, 403);
+ {
+ ptr = new eHTTPError(conn, 405); // method not allowed
+ return 0;
+ }
+ if (path.find("../")!=std::string::npos) // evil hax0r
+ {
+ ptr = new eHTTPError(conn, 403);
+ return 0;
+ }