From: oes Date: Wed, 17 Dec 2003 16:34:15 +0000 (+0000) Subject: - Prevent line wrap beween "View/Edit" link buttons on status page X-Git-Tag: v_3_0_3~33 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=9bbe748d37c0ee2502d94d491420d01ce5fded5b;hp=6e75d59de68553a45461f4937cc1497bcc113440;p=privoxy.git - Prevent line wrap beween "View/Edit" link buttons on status page - Some (mostly irrelevant) fixes for Out-of-mem-case handling --- diff --git a/cgisimple.c b/cgisimple.c index 56f9094b..7ac48656 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.35.2.1 2002/07/04 15:02:38 oes Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.35.2.2 2003/04/03 13:48:28 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/Attic/cgisimple.c,v $ @@ -36,6 +36,9 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.35.2.1 2002/07/04 15:02:38 oe * * Revisions : * $Log: cgisimple.c,v $ + * Revision 1.35.2.2 2003/04/03 13:48:28 oes + * Don't show "Edit" buttons #ifndef FEATURE_CGI_EDIT_ACTIONS + * * Revision 1.35.2.1 2002/07/04 15:02:38 oes * Added ability to send redirects to send-banner CGI, so that it can completely mimic the image blocking action if called with type=auto * @@ -870,13 +873,13 @@ jb_err cgi_show_status(struct client_state *csp, { if (!err) err = string_append(&s, ""); if (!err) err = string_join(&s, html_encode(csp->actions_list[i]->filename)); - snprintf(buf, 100, "View ", i); + snprintf(buf, 100, "View", i); if (!err) err = string_append(&s, buf); #ifdef FEATURE_CGI_EDIT_ACTIONS if (NULL == strstr(csp->actions_list[i]->filename, "standard.action") && NULL != csp->config->actions_file_short[i]) { - snprintf(buf, 100, "Edit", csp->config->actions_file_short[i]); + snprintf(buf, 100, "  Edit", csp->config->actions_file_short[i]); if (!err) err = string_append(&s, buf); } #endif @@ -1076,6 +1079,7 @@ jb_err cgi_show_url_info(struct client_state *csp, if (err == JB_ERR_MEMORY) { + free_http_request(url_to_query); free_current_action(action); free_map(exports); return JB_ERR_MEMORY; @@ -1088,6 +1092,7 @@ jb_err cgi_show_url_info(struct client_state *csp, if (!err) err = map(exports, "final", 1, lookup(exports, "default"), 1); free_current_action(action); + free_http_request(url_to_query); if (err) { @@ -1107,6 +1112,7 @@ jb_err cgi_show_url_info(struct client_state *csp, { free_current_action(action); free_map(exports); + free_http_request(url_to_query); return JB_ERR_MEMORY; } }