X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fautocompletion.c;h=009df23821418e9e5638fe7d6d9eb382f1102bda;hb=5d38a76f8f06640e3a3f097d584ac52336110f7c;hp=69564e812488dde771b64444327ce79cf39ea1b6;hpb=76f23da782e9e80dad0a8ae1336230da5a6fa124;p=citadel.git diff --git a/webcit/autocompletion.c b/webcit/autocompletion.c index 69564e812..009df2382 100644 --- a/webcit/autocompletion.c +++ b/webcit/autocompletion.c @@ -1,7 +1,15 @@ /* - * $Id$ - * * ajax-powered autocompletion... + * + * 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, 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. */ #include "webcit.h" @@ -15,7 +23,7 @@ void recp_autocomplete(char *partial) { output_headers(0, 0, 0, 0, 0, 0); - wprintf("Content-type: text/html\r\n" + hprintf("Content-type: text/html\r\n" "Server: %s\r\n" "Connection: close\r\n" "Pragma: no-cache\r\n" @@ -25,22 +33,22 @@ void recp_autocomplete(char *partial) { PACKAGE_STRING); begin_burst(); - wprintf(""); - wprintf("\r\n\r\n"); + wc_printf("\r\n\r\n"); wDumpContent(0); } @@ -54,7 +62,7 @@ void InitModule_AUTO_COMPLETE (void) { - WebcitAddUrlHandler(HKEY("recp_autocomplete"), _recp_autocomplete, 0); - WebcitAddUrlHandler(HKEY("cc_autocomplete"), _cc_autocomplete, 0); - WebcitAddUrlHandler(HKEY("bcc_autocomplete"), _bcc_autocomplete, 0); + WebcitAddUrlHandler(HKEY("recp_autocomplete"), "", 0, _recp_autocomplete, 0); + WebcitAddUrlHandler(HKEY("cc_autocomplete"), "", 0, _cc_autocomplete, 0); + WebcitAddUrlHandler(HKEY("bcc_autocomplete"), "", 0, _bcc_autocomplete, 0); }