From 42e4fa330b6bae707912dc050900fda316a5224f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 13 Apr 2007 13:36:46 +0000 Subject: [PATCH] Reference action files in CGI URLs by id instead of using the first part of the file name. Fixes BR 1694250 and BR 1590556. --- cgisimple.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cgisimple.c b/cgisimple.c index d3f4e0ac..3e322954 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.53 2007/04/08 13:21:04 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.54 2007/04/09 18:11:35 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -36,6 +36,9 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.53 2007/04/08 13:21:04 fabian * * Revisions : * $Log: cgisimple.c,v $ + * Revision 1.54 2007/04/09 18:11:35 fabiankeil + * Don't mistake VC++'s _snprintf() for a snprintf() replacement. + * * Revision 1.53 2007/04/08 13:21:04 fabiankeil * Reference action files in CGI URLs by id instead * of using the first part of the file name. @@ -1511,9 +1514,9 @@ jb_err cgi_show_url_info(struct client_state *csp, string_append(&matches, buf); string_append(&matches, "View"); #ifdef FEATURE_CGI_EDIT_ACTIONS - string_append(&matches, " config->actions_file_short[i])); - string_append(&matches, "\">Edit"); + snprintf(buf, sizeof(buf), " ", i); + string_append(&matches, buf); + string_append(&matches, "Edit"); #endif string_append(&matches, "\n"); -- 2.39.2