X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fuseredit.c;h=a6b4d4b44df152eb836e8acc4d06ee6a04e4cb2a;hb=HEAD;hp=e1fb110ff4e2b3ca774c71339e01cf73a85da005;hpb=425c3723bd35cf6e2048027e36c721a78784b8c7;p=citadel.git diff --git a/webcit/useredit.c b/webcit/useredit.c index e1fb110ff..ce94a343d 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996-2020 by the citadel.org team + * Copyright (c) 1996-2021 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, version 3. @@ -11,7 +11,7 @@ */ #include "webcit.h" -#include "webserver.h" + CtxType CTX_USERLIST = CTX_NONE; /* @@ -529,7 +529,6 @@ int Conditional_USER_HAS_PIC(StrBuf *Target, WCTemplputParams *TP) */ long locate_user_vcard_in_this_room(message_summary **VCMsg, wc_mime_attachment **VCAtt) { - wcsession *WCC = WC; HashPos *at; HashPos *att; const char *HashKey; @@ -553,8 +552,8 @@ TRYAGAIN: Stat.highest_found = (-1); /* Search for the user's vCard */ if (load_msg_ptrs("MSGS ALL||||1", NULL, NULL, &Stat, NULL, NULL, NULL, NULL, 0) > 0) { - at = GetNewHashPos(WCC->summ, 0); - while (GetNextHashPos(WCC->summ, at, &HKLen, &HashKey, &vMsg)) { + at = GetNewHashPos(WC->summ, 0); + while (GetNextHashPos(WC->summ, at, &HKLen, &HashKey, &vMsg)) { Msg = (message_summary*) vMsg; Msg->MsgBody = (wc_mime_attachment*) malloc(sizeof(wc_mime_attachment)); memset(Msg->MsgBody, 0, sizeof(wc_mime_attachment)); @@ -801,7 +800,7 @@ void edituser(void) { } /* Remove any naughty inappropriate whitespace */ - striplt(all_the_emails); + string_trim(all_the_emails); while (pos = strstr(all_the_emails, "\n,"), (pos != NULL)) { strcpy(pos, pos+1); }