Differences From:
File
src/cgi.c
part of check-in
[16ec6e558b]
- Always redirect incoming HTTP requests to the /xfer method when the
content-type is application/x-fossil.
by
drh on
2008-05-29 14:00:27.
[view]
To:
File
src/cgi.c
part of check-in
[e5b7292620]
- 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.
by
drh on
2008-05-29 14:37:17.
[view]
@@ -428,10 +428,12 @@
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