* here we need to look for StrBufNOTNULL too.
authorWilfried Göesgens <willi@citadel.org>
Mon, 7 Sep 2009 21:06:51 +0000 (21:06 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 7 Sep 2009 21:06:51 +0000 (21:06 +0000)
webcit/context_loop.c

index 62ee82a03cc03038fb9de87193e1bbb10ea4f69f..9c1dde0afe7f123332576b7f0aabbdf755661ccf 100644 (file)
@@ -319,7 +319,7 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf)
                break;
        } while (1);
        /* remove the handlername from the URL */
-       if (Pos != NULL) {
+       if ((Pos != NULL) && (Pos != StrBufNOTNULL)){
                StrBufCutLeft(Hdr->HR.ReqLine, 
                              Pos - ChrPtr(Hdr->HR.ReqLine));
        }