Check-in [39a144eb5c]
Not logged in
Overview

SHA1 Hash:39a144eb5cdde5bced1dce3aefa57272b80afbd3
Date: 2009-09-16 14:50:24
User: drh
Comment:Make sure that bringing up the "/xfer" URL in a web-browser does something sensible (it redirects to the homepage.) Ticket 1d7bbe30aad51.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/xfer.c from [d0ba2feaa9] to [0008bf7842].

@@ -568,10 +568,13 @@
   int isClone = 0;
   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);
   xfer.pIn = &g.cgiIn;