* more fixes, offset in URLS is different now, since we strip the command.
[citadel.git] / webcit / vcard_edit.c
index 31780a6a136a2507be84e71501d558bb38df2482..e409125d6fc2d8266e2de8d949a3f06dc60ca17d 100644 (file)
@@ -1218,7 +1218,7 @@ void display_vcard_photo_img(void)
        const char *contentType;
        wcsession *WCC = WC;
 
-       msgnum = StrBufExtract_long(WCC->Hdr->ReqLine, 2, '/');
+       msgnum = StrBufExtract_long(WCC->Hdr->ReqLine, 0, '/');
        
        vcard = load_mimepart(msgnum,"1");
        v = VCardLoad(vcard);