From: Wilfried Göesgens Date: Thu, 10 Sep 2009 21:11:38 +0000 (+0000) Subject: * fix freebusy hook X-Git-Tag: v7.86~856 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7fbf4cc990195e13d50ab6366f25a953b05f38bd;p=citadel.git * fix freebusy hook --- diff --git a/webcit/calendar.c b/webcit/calendar.c index f0baec2dc..70fddf490 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -812,14 +812,14 @@ void save_event(void) { * Anonymous request of freebusy data for a user */ void do_freebusy(void) -{ /// TODO: request line const char *req) { - const char req[] = ""; +{ + const char *req = ChrPtr(WC->Hdr->HR.ReqLine); char who[SIZ]; char buf[SIZ]; int len; long lines; - extract_token(who, req, 1, ' ', sizeof who); + extract_token(who, req, 0, ' ', sizeof who); if (!strncasecmp(who, "/freebusy/", 10)) { strcpy(who, &who[10]); }