Check-in [e5b7292620]
Not logged in
Overview

SHA1 Hash:e5b72926206b0659157c3c81b471f84ecab10f86
Date: 2008-05-29 14:37:17
User: drh
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.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/cgi.c from [7e3878f313] to [9a68d3734f].

@@ -427,12 +427,14 @@
 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.