Commit Diff
- Commit:
568a09c220a706cb717f345a4da14e935dca1672
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- fix requri construction when we switched from one process to two, I introduced a small optimisation: empty string are not send, so we receive NULL. Constructing requri we need to make sure that relpath is not null.
- Actions:
- Patch | Tree
--- ex.c +++ ex.c @@ -208,7 +208,8 @@ launch_cgi(const char *spath, const char *relpath, con goto childerr; if (asprintf(&requri, "%s%s%s", spath, - (relpath != NULL && *relpath == '\0') ? "" : "/", relpath) == -1) + (relpath != NULL && *relpath == '\0') ? "" : "/", + (relpath != NULL ? relpath : "")) == -1) goto childerr; argv[0] = argv[1] = ex;