Diff
Not logged in

Differences From:

File src/main.c part of check-in [61ce5e3685] - Get rid of the "locking" capability on wiki pages. Assume that anybody who can write or append to a wiki page can do so to any wiki page. Add the /wikiappend page for appending comments to the end of wiki. by drh on 2007-10-10 23:10:48. [view]

To:

File src/main.c part of check-in [1ce716b2ec] - Add the g.zExtra output to the test_env page. Fix a bug in the computation of g.zTop. by drh on 2007-10-11 02:11:42. [view]

@@ -439,12 +439,12 @@
   while( i>0 && zCur[i-1]=='/' ){ i--; }
 
   if( strcmp(zMode,"on")==0 ){
     g.zBaseURL = mprintf("https://%s%.*s", zHost, i, zCur);
-    g.zTop = &g.zBaseURL[8+strlen(zHost)+i];
+    g.zTop = &g.zBaseURL[8+strlen(zHost)];
   }else{
     g.zBaseURL = mprintf("http://%s%.*s", zHost, i, zCur);
-    g.zTop = &g.zBaseURL[7+strlen(zHost)+i];
+    g.zTop = &g.zBaseURL[7+strlen(zHost)];
   }
 }
 
 /*