* fix freebusy hook
authorWilfried Göesgens <willi@citadel.org>
Thu, 10 Sep 2009 21:11:38 +0000 (21:11 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 10 Sep 2009 21:11:38 +0000 (21:11 +0000)
webcit/calendar.c

index f0baec2dc70c3027a564e51cdc2a2956cf04792f..70fddf490e9f21fc87b4ccd5fe2a081b32fb52d1 100644 (file)
@@ -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]);
        }