Differences From Artifact [ac5a32d381]:
- File src/doc.c — part of check-in [62398459fb] at 2012-03-31 15:18:03 on branch trunk — Add the ability to set a background image as part of the server configuration. Process the CSS using TH1 so that $baseurl can be inserted into the CSS. (user: drh size: 27420) [more...]
To Artifact [c0a2fbd8a1]:
- File src/doc.c — part of check-in [fd10cdbaf8] at 2012-08-13 12:30:18 on branch wysiwyg — Fixes to the <base> addition to the HTML header so that it works correctly with the "doc" webpage. Href is now $baseurl/$current_page. (user: drh size: 27466) [more...]
| ︙ | |||
368 369 370 371 372 373 374 375 376 377 378 379 380 381 | 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | + |
if( !g.perm.Read ){ login_needed(); return; }
zName = PD("name", "tip/index.wiki");
for(i=0; zName[i] && zName[i]!='/'; i++){}
if( zName[i]==0 || i>UUID_SIZE ){
zName = "index.html";
goto doc_not_found;
}
g.zPath = mprintf("%s/%s", g.zPath, zName);
memcpy(zBaseline, zName, i);
zBaseline[i] = 0;
zName += i;
while( zName[0]=='/' ){ zName++; }
if( !file_is_simple_pathname(zName) ){
int n = strlen(zName);
if( n>0 && zName[n-1]=='/' ){
|
| ︙ |