Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [bbb8ae7ebf] - Make it harder to misconfigure the user accounts in a way that might give people greater access than intended. by drh on 2009-09-15 18:44:51. [view]

To:

File src/xfer.c part of check-in [7a2c37063a] - merge trunk into creole branch by bob on 2009-09-22 07:49:39. Also file src/xfer.c part of check-in [39a144eb5c] - Make sure that bringing up the "/xfer" URL in a web-browser does something sensible (it redirects to the homepage.) Ticket 1d7bbe30aad51. by drh on 2009-09-16 14:50:24. [view]

@@ -569,8 +569,11 @@
   int nGimme = 0;
   int size;
   int recvConfig = 0;
 
+  if( strcmp(PD("REQUEST_METHOD","POST"),"POST") ){
+     fossil_redirect_home();
+  }
   memset(&xfer, 0, sizeof(xfer));
   blobarray_zero(xfer.aToken, count(xfer.aToken));
   cgi_set_content_type(g.zContentType);
   blob_zero(&xfer.err);