Fossil SCM

When there is no argument to the /uv page, make "index.wiki" the default. Do not allow "index.html" since that probably will not have the correct <base> header.

drh 2016-08-23 13:31 trunk
Commit 4a8378581c5e537d0fed83b628b6f8b3347a9d47
1 file changed +1 -1
+1 -1
--- src/doc.c
+++ src/doc.c
@@ -596,11 +596,11 @@
596596
zDfltTitle = isUV ? "" : "Documentation";
597597
db_begin_transaction();
598598
while( rid==0 && (++nMiss)<=ArraySize(azSuffix) ){
599599
zName = P("name");
600600
if( isUV ){
601
- if( zName==0 ) zName = "";
601
+ if( zName==0 ) zName = "index.wiki";
602602
i = 0;
603603
}else{
604604
if( zName==0 || zName[0]==0 ) zName = "tip/index.wiki";
605605
for(i=0; zName[i] && zName[i]!='/'; i++){}
606606
zCheckin = mprintf("%.*s", i, zName);
607607
--- src/doc.c
+++ src/doc.c
@@ -596,11 +596,11 @@
596 zDfltTitle = isUV ? "" : "Documentation";
597 db_begin_transaction();
598 while( rid==0 && (++nMiss)<=ArraySize(azSuffix) ){
599 zName = P("name");
600 if( isUV ){
601 if( zName==0 ) zName = "";
602 i = 0;
603 }else{
604 if( zName==0 || zName[0]==0 ) zName = "tip/index.wiki";
605 for(i=0; zName[i] && zName[i]!='/'; i++){}
606 zCheckin = mprintf("%.*s", i, zName);
607
--- src/doc.c
+++ src/doc.c
@@ -596,11 +596,11 @@
596 zDfltTitle = isUV ? "" : "Documentation";
597 db_begin_transaction();
598 while( rid==0 && (++nMiss)<=ArraySize(azSuffix) ){
599 zName = P("name");
600 if( isUV ){
601 if( zName==0 ) zName = "index.wiki";
602 i = 0;
603 }else{
604 if( zName==0 || zName[0]==0 ) zName = "tip/index.wiki";
605 for(i=0; zName[i] && zName[i]!='/'; i++){}
606 zCheckin = mprintf("%.*s", i, zName);
607

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button