Diff
Not logged in

Differences From:

File src/main.c part of check-in [1ce716b2ec] - Add the g.zExtra output to the test_env page. Fix a bug in the computation of g.zTop. by drh on 2007-10-11 02:11:42. [view]

To:

File src/main.c part of check-in [677aa71bca] - The g.zExtra parameter is now always available as P("name"). This means the /wiki/xyz and /wiki?name=xyz are equivalent URLs. by drh on 2007-10-12 22:56:18. [view]

@@ -449,9 +449,9 @@
 
 /*
 ** Preconditions:
 **
-**    * Environment various are set up according to the CGI standard.
+**    * Environment variables are set up according to the CGI standard.
 **    * The respository database has been located and opened.
 **
 ** Process the webpage specified by the PATH_INFO or REQUEST_URI
 ** environment variable.
@@ -495,8 +495,9 @@
     /* CGI parameters get this treatment elsewhere, but places like getfile
     ** will use g.zExtra directly.
     */
     dehttpize(g.zExtra);
+    cgi_set_parameter_nocopy("name", g.zExtra);
   }
 
   /* Prevent robots from indexing this site.
   */