This is an intranet application that has been in production for over 12 years. I believe the "/add" is being used as a parameter/variable to be read by the html.c code to determine how to process the data. I'll paste some code from the main.c and htmls.c code, so that you can see how it's being used.
From main.c
Code:
if (strcmp(cgiPathInfo(), "/addForm") == 0) { /* Generating form for new registration */
pRegData = DB_createDataStructure(1);
cgiGetFormData();
getParamData();
html_initPage();
html_regForm(ADD_NEW, pRegData, NULL);
free(pRegData);
}
else if (strcmp(cgiPathInfo(), "/confirmAdd") == 0) { /* asking confirmation from user */
pRegData = DB_createDataStructure(1);
cgiGetFormData();
if (cgiNumFormFields() == 0)
html_redirect(homePage);
getDataInStruct(pRegData);
html_initPage();
From htmls.c
Code:
if (mode == CHG_CONF) {
printf("<form name=\"addConfirm\" method=post action=\"%s/change\">\n", CGINAME);
printf("<input type=hidden name=\"tracking\" value=\"%s\">\n", pData->tracking);
printf("<input type=hidden name=\"reason\" value=\"%s\">\n", pData->reason);
}
else {
printf("<form name=\"addConfirm\" method=post action=\"%s/add\">\n", CGINAME);
}
/* printf("<input type=hidden name=\"session\" value=\"%s\">\n", pData->meeting); */
generateHiddenSession(pData->meeting);
printf("<input type=hidden name=\"a_ar_ht\" value=\"%s\">\n", pData->a_ar_ht);
printf("<input type=hidden name=\"a_dp_ht\" value=\"%s\">\n", pData->a_dp_ht);
Does this help?