From b21e25c9d6d4a923b090d7b9a40c0115ef465440 Mon Sep 17 00:00:00 2001 From: jongfoster Date: Tue, 13 Nov 2001 00:28:51 +0000 Subject: [PATCH] Adding new CGIs for use by non-JavaScript browsers: edit-actions-url-form edit-actions-add-url-form edit-actions-remove-url-form --- cgiedit.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/cgiedit.h b/cgiedit.h index 38443a04..e5a5510c 100644 --- a/cgiedit.h +++ b/cgiedit.h @@ -1,6 +1,6 @@ #ifndef CGIEDIT_H_INCLUDED #define CGIEDIT_H_INCLUDED -#define CGIEDIT_H_VERSION "$Id: cgiedit.h,v 1.2 2001/10/14 22:12:49 jongfoster Exp $" +#define CGIEDIT_H_VERSION "$Id: cgiedit.h,v 1.3 2001/10/23 21:48:19 jongfoster Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgiedit.h,v $ @@ -37,6 +37,18 @@ * * Revisions : * $Log: cgiedit.h,v $ + * Revision 1.3 2001/10/23 21:48:19 jongfoster + * Cleaning up error handling in CGI functions - they now send back + * a HTML error page and should never cause a FATAL error. (Fixes one + * potential source of "denial of service" attacks). + * + * CGI actions file editor that works and is actually useful. + * + * Ability to toggle JunkBuster remotely using a CGI call. + * + * You can turn off both the above features in the main configuration + * file, e.g. if you are running a multi-user proxy. + * * Revision 1.2 2001/10/14 22:12:49 jongfoster * New version of CGI-based actionsfile editor. * Major changes, including: @@ -83,12 +95,21 @@ extern jb_err cgi_edit_actions_submit (struct client_state *csp, extern jb_err cgi_edit_actions_url (struct client_state *csp, struct http_response *rsp, const struct map *parameters); +extern jb_err cgi_edit_actions_url_form(struct client_state *csp, + struct http_response *rsp, + const struct map *parameters); extern jb_err cgi_edit_actions_add_url(struct client_state *csp, struct http_response *rsp, const struct map *parameters); +extern jb_err cgi_edit_actions_add_url_form(struct client_state *csp, + struct http_response *rsp, + const struct map *parameters); extern jb_err cgi_edit_actions_remove_url (struct client_state *csp, struct http_response *rsp, const struct map *parameters); +extern jb_err cgi_edit_actions_remove_url_form(struct client_state *csp, + struct http_response *rsp, + const struct map *parameters); extern jb_err cgi_edit_actions_section_remove(struct client_state *csp, struct http_response *rsp, const struct map *parameters); -- 2.39.2