* make readloop long-controlled
[citadel.git] / webcit / webcit.c
index 095082ccb8b55a5998de9b9348b0c462fa0f2c7d..1bd1e1ee582eaeb17f58b3614d9d4f847961cb62 100644 (file)
@@ -1811,8 +1811,8 @@ void session_loop(HashList *HTTPHeaders, StrBuf *ReqLine, StrBuf *request_method
                                                WCC->UrlFragment1 = NewStrBuf();
                                        if (WCC->UrlFragment2 == NULL)
                                                WCC->UrlFragment2 = NewStrBuf();
-                                       StrBufPrintf(WCC->UrlFragment1, "%s", index[1]);
-                                       StrBufPrintf(WCC->UrlFragment2, "%s", index[2]);
+                                       StrBufPrintf(WCC->UrlFragment1, "%s", index[0]);
+                                       StrBufPrintf(WCC->UrlFragment2, "%s", index[1]);
                                }
                                if ((Handler->Flags & AJAX) != 0)
                                        begin_ajax_response();