Diff
Not logged in

Differences From:

File src/browse.c part of check-in [a20dcb5c26] - Hyperlinks to directory browser pages on the pathname in the title of the file history viewer, finfo. by drh on 2008-02-04 19:08:55. [view]

To:

File src/browse.c part of check-in [d57de28756] - The "h" capability is now used to enable hyperlinks to non-wiki pages. When "h" is missing, many pages give a hyperlink to the login page and automatically fill in "anonymous" as the user name. The login page jumps back to the target page after a successful login. by drh on 2008-05-05 23:15:29. [view]

@@ -84,13 +84,13 @@
   char *zSep = "";
 
   for(i=0; zPath[i]; i=j){
     for(j=i; zPath[j] && zPath[j]!='/'; j++){}
-    if( zPath[j] ){
+    if( zPath[j] && g.okHistory ){
       blob_appendf(pOut, "%s<a href=\"%s/dir?name=%#T\">%#h</a>",
                    zSep, g.zBaseURL, j, zPath, j-i, &zPath[i]);
     }else{
-      blob_appendf(pOut, "%s%h", zSep, &zPath[i]);
+      blob_appendf(pOut, "%s%#h", zSep, j-i, &zPath[i]);
     }
     zSep = "/";
     while( zPath[j]=='/' ){ j++; }
   }