Differences From:
File
src/zip.c
part of check-in
[95e17f4e3f]
- Generate the "manifest.uuid" file containing the SHA1 hash of the "manifest"
file whenever the manifest is generated. Makefiles can used the
"manifest.uuid" to insert the version number into the executable.
by
drh on
2007-08-25 19:31:31.
[view]
To:
File
src/zip.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.
Also file
src/zip.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
@@ -323,11 +323,12 @@
}
/*
** WEBPAGE: zip
+** URL: /zip/RID.zip
**
-** Generate a ZIP archive for the baseline specified by g.zExtra
-** and return that ZIP archive as the HTTP reply content.
+** Generate a ZIP archive for the baseline.
+** Return that ZIP archive as the HTTP reply content.
*/
void baseline_zip_page(void){
int rid;
char *zName;
@@ -335,9 +336,9 @@
Blob zip;
login_check_credentials();
if( !g.okRead || !g.okHistory ){ login_needed(); return; }
- zName = mprintf("%s", g.zExtra);
+ zName = mprintf("%s", PD("name",""));
i = strlen(zName);
for(i=strlen(zName)-1; i>5; i--){
if( zName[i]=='.' ){
zName[i] = 0;