Differences From Artifact [b67cd6f043]:
- File src/zip.c — part of check-in [8206ac9b9e] at 2014-02-14 15:20:19 on branch trunk — changed a couple free()s to fossil_free()s. (user: stephan size: 12000) [more...]
To Artifact [f48cbf87a6]:
- File src/zip.c — part of check-in [5e26a1b9b2] at 2014-03-09 00:15:05 on branch trunk — Add the ability to restrict CPU-intensive web pages when the server load average gets too high. This feature is turned off by default. (user: drh size: 12018) [more...]
| ︙ | |||
425 426 427 428 429 430 431 432 433 434 435 436 437 438 | 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | + |
int rid;
char *zName, *zRid;
int nName, nRid;
Blob zip;
login_check_credentials();
if( !g.perm.Zip ){ login_needed(); return; }
load_control();
zName = mprintf("%s", PD("name",""));
nName = strlen(zName);
zRid = mprintf("%s", PD("uuid","trunk"));
nRid = strlen(zRid);
for(nName=strlen(zName)-1; nName>5; nName--){
if( zName[nName]=='.' ){
zName[nName] = 0;
|
| ︙ |