Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When redirecting to /xfer, make sure the PATH_INFO actually exists. Update the cgi_replace_parameter() routine to make sure the parameter being replaced already exists. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
e5b72926206b0659157c3c81b471f84e |
| User & Date: | drh 2008-05-29 14:37:17.000 |
Context
|
2008-05-29
| ||
| 14:38 | Add a missing semicolon to the previous checkin. ... (check-in: 5b61ad3a4c user: drh tags: trunk) | |
| 14:37 | When redirecting to /xfer, make sure the PATH_INFO actually exists. Update the cgi_replace_parameter() routine to make sure the parameter being replaced already exists. ... (check-in: e5b7292620 user: drh tags: trunk) | |
| 14:00 | Always redirect incoming HTTP requests to the /xfer method when the content-type is application/x-fossil. ... (check-in: 16ec6e558b user: drh tags: trunk) | |
Changes
Changes to src/cgi.c.
| ︙ | ︙ | |||
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
** Replace a parameter with a new value.
*/
void cgi_replace_parameter(const char *zName, const char *zValue){
int i;
for(i=0; i<nUsedQP; i++){
if( strcmp(aParamQP[i].zName,zName)==0 ){
aParamQP[i].zValue = zValue;
}
}
}
/*
** Add a query parameter. The zName portion is fixed but a copy
** must be made of zValue.
*/
void cgi_setenv(const char *zName, const char *zValue){
| > > | 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
** Replace a parameter with a new value.
*/
void cgi_replace_parameter(const char *zName, const char *zValue){
int i;
for(i=0; i<nUsedQP; i++){
if( strcmp(aParamQP[i].zName,zName)==0 ){
aParamQP[i].zValue = zValue;
return
}
}
cgi_set_parameter_nocopy(zName, zValue);
}
/*
** Add a query parameter. The zName portion is fixed but a copy
** must be made of zValue.
*/
void cgi_setenv(const char *zName, const char *zValue){
|
| ︙ | ︙ |