* here we need to look for StrBufNOTNULL too.
[citadel.git] / 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));
        }