Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Avoid extra / characters in the redirect to /index.html from / in althttpd.c. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4f48a846f61b9592859f7cc6b65b2d56 |
User & Date: | drh 2018-02-14 18:59:23.847 |
Context
2018-02-16
| ||
14:31 | Enhance althttpd.c so that with the -DLOG_HEADER option, it records the complete http request header in logfile-hdr if the "FullHeaderLog" string occurs anyplace in the request path. (check-in: b1ce1a2b56 user: drh tags: trunk) | |
2018-02-14
| ||
18:59 | Avoid extra / characters in the redirect to /index.html from / in althttpd.c. (check-in: 4f48a846f6 user: drh tags: trunk) | |
14:14 | Update the spellfix1 documentation regarding the k1 column of the %_vocab table. (check-in: 92cb32fb50 user: drh tags: trunk) | |
Changes
Changes to misc/althttpd.c.
︙ | ︙ | |||
1429 1430 1431 1432 1433 1434 1435 | if( access(zLine,R_OK) ){ NotFound(__LINE__); /* LOG: File not readable */ } zRealScript = StrDup(&zLine[j0]); break; } if( zScript[i]==0 || zScript[i+1]==0 ){ | > | | | 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 | if( access(zLine,R_OK) ){ NotFound(__LINE__); /* LOG: File not readable */ } zRealScript = StrDup(&zLine[j0]); break; } if( zScript[i]==0 || zScript[i+1]==0 ){ int k = j>0 && zLine[j-1]=='/' ? j-1 : j; strcpy(&zLine[k],"/index.html"); if( stat(zLine,&statbuf)!=0 || !S_ISREG(statbuf.st_mode) || access(zLine,R_OK) ){ strcpy(&zLine[k],"/index.cgi"); if( stat(zLine,&statbuf)!=0 || !S_ISREG(statbuf.st_mode) || access(zLine,R_OK) ){ NotFound(__LINE__); /* LOG: URI is a directory w/o index.html */ } } zRealScript = StrDup(&zLine[j0]); if( zScript[i]==0 ){ |
︙ | ︙ |