X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fvcard_edit.c;h=950fae6f43671e43fb53a16449eacd4390554b48;hb=b7f1665b64318cee1b14d13f7e9fdb6a323189a4;hp=4934cf6ee4a9b39083d01f6586f4093f0e4f5e51;hpb=c77900f83a8fb36b2c0f4459056cb891f4b08b8d;p=citadel.git diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index 4934cf6ee..950fae6f4 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -1,26 +1,20 @@ /* - * Copyright (c) 1996-2011 by the citadel.org team + * Copyright (c) 1996-2012 by the citadel.org team * * This program is open source software. You can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 3 of the - * License, or (at your option) any later version. + * modify it under the terms of the GNU General Public License, version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "webcit.h" #include "webserver.h" #include "calendar.h" - +CtxType CTX_VCARD = CTX_NONE; ConstStr VCStr [] = { {HKEY("n")}, /* N is name, but only if there's no FN already there */ @@ -252,7 +246,7 @@ void fetchname_parsed_vcard(struct vCard *v, char **storename) { } } if (is_qp) { - // %ff can become 6 bytes in utf8 + /* %ff can become 6 bytes in utf8 */ *storename = malloc(len * 2 + 3); j = CtdlDecodeQuotedPrintable( *storename, name, @@ -260,7 +254,7 @@ void fetchname_parsed_vcard(struct vCard *v, char **storename) { (*storename)[j] = 0; } else if (is_b64) { - // ff will become one byte.. + /* ff will become one byte.. */ *storename = malloc(len + 50); CtdlDecodeBase64( *storename, name, @@ -505,7 +499,7 @@ void display_parsed_vcard(StrBuf *Target, struct vCard *v, int full, wc_mime_att if (pass == 1) { StrBufAppendPrintf(Target, "