X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdownloads.c;h=b0e7cace3a431e099ff085248465ccfd38b5d1b3;hb=f573ffd76f7b76fe677cff1ba60e17c6b9eddbec;hp=5f4ee0647535982ed9ed78e5bcd3f5fbb5fe5daa;hpb=c1bfa993f32198515f9994cde602f7bcd4da35d8;p=citadel.git diff --git a/webcit/downloads.c b/webcit/downloads.c index 5f4ee0647..b0e7cace3 100644 --- a/webcit/downloads.c +++ b/webcit/downloads.c @@ -249,8 +249,9 @@ void download_file(void) int force_download = 1; Buf = NewStrBuf(); - StrBufUnescape(WCC->UrlFragment2, 1); - serv_printf("OPEN %s", ChrPtr(WCC->UrlFragment2)); + StrBufExtract_token(Buf, WCC->Hdr->ReqLine, 2, '/'); + StrBufUnescape(Buf, 1); + serv_printf("OPEN %s", ChrPtr(Buf)); StrBuf_ServGetln(Buf); if (GetServerStatus(Buf, NULL) == 2) { StrBufCutLeft(Buf, 4); @@ -386,7 +387,7 @@ void output_image(void) * when there's no such image on the server. */ StrBufPrintf (Buf, "%s%s", static_dirs[0], "/blank.gif"); - output_static(ChrPtr(Buf)); + //// TDODO output_static(ChrPtr(Buf)); FreeStrBuf(&Buf); }