Fossil SCM

Make explicit links in wiki visible regardless of whether or not the "h" permission is turned on.

drh 2008-11-22 19:32 trunk
Commit a8c3a7ea9249281e0a1fb55fb31d2ad57844f848
1 file changed +2 -2
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -934,17 +934,17 @@
934934
|| strncmp(zTarget, "ftp:", 4)==0
935935
|| strncmp(zTarget, "mailto:", 7)==0
936936
){
937937
blob_appendf(p->pOut, "<a href=\"%s\">", zTarget);
938938
}else if( zTarget[0]=='/' ){
939
- if( g.okHistory ){
939
+ if( 1 /* g.okHistory */ ){
940940
blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget);
941941
}else{
942942
zTerm = "";
943943
}
944944
}else if( zTarget[0]=='.' ){
945
- if( g.okHistory ){
945
+ if( 1 /* g.okHistory */ ){
946946
blob_appendf(p->pOut, "<a href=\"%h\">", zTarget);
947947
}else{
948948
zTerm = "";
949949
}
950950
}else if( is_valid_uuid(zTarget) ){
951951
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -934,17 +934,17 @@
934 || strncmp(zTarget, "ftp:", 4)==0
935 || strncmp(zTarget, "mailto:", 7)==0
936 ){
937 blob_appendf(p->pOut, "<a href=\"%s\">", zTarget);
938 }else if( zTarget[0]=='/' ){
939 if( g.okHistory ){
940 blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget);
941 }else{
942 zTerm = "";
943 }
944 }else if( zTarget[0]=='.' ){
945 if( g.okHistory ){
946 blob_appendf(p->pOut, "<a href=\"%h\">", zTarget);
947 }else{
948 zTerm = "";
949 }
950 }else if( is_valid_uuid(zTarget) ){
951
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -934,17 +934,17 @@
934 || strncmp(zTarget, "ftp:", 4)==0
935 || strncmp(zTarget, "mailto:", 7)==0
936 ){
937 blob_appendf(p->pOut, "<a href=\"%s\">", zTarget);
938 }else if( zTarget[0]=='/' ){
939 if( 1 /* g.okHistory */ ){
940 blob_appendf(p->pOut, "<a href=\"%s%h\">", g.zBaseURL, zTarget);
941 }else{
942 zTerm = "";
943 }
944 }else if( zTarget[0]=='.' ){
945 if( 1 /* g.okHistory */ ){
946 blob_appendf(p->pOut, "<a href=\"%h\">", zTarget);
947 }else{
948 zTerm = "";
949 }
950 }else if( is_valid_uuid(zTarget) ){
951

Keyboard Shortcuts

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