* BIG rewrite of header handling and slimming of context_loop and session_loop; shuff...
[citadel.git] / webcit / vcard_edit.c
index 826a351423ff0e70fb238de2b412d4583a9e74bb..31780a6a136a2507be84e71501d558bb38df2482 100644 (file)
@@ -1218,7 +1218,7 @@ void display_vcard_photo_img(void)
        const char *contentType;
        wcsession *WCC = WC;
 
-       msgnum = StrTol(WCC->UrlFragment2);
+       msgnum = StrBufExtract_long(WCC->Hdr->ReqLine, 2, '/');
        
        vcard = load_mimepart(msgnum,"1");
        v = VCardLoad(vcard);