Check-in [1ce716b2ec]
Not logged in
Overview

SHA1 Hash:1ce716b2ecf72a18fdeef0f7460193180970203b
Date: 2007-10-11 02:11:42
User: drh
Comment:Add the g.zExtra output to the test_env page. Fix a bug in the computation of g.zTop.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/main.c from [5b5ca5ba39] to [53217aa48d].

@@ -438,14 +438,14 @@
   while( i>0 && zCur[i-1]!='/' ){ i--; }
   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)];
   }
 }
 
 /*
 ** Preconditions:

Modified src/style.c from [9a9bbad4f1] to [07fba9de0a].

@@ -238,9 +238,10 @@
 ** WEBPAGE: test_env
 */
 void page_test_env(void){
   style_header("Environment Test");
   @ g.zBaseURL = %h(g.zBaseURL)<br>
-  @ g.zTop = %h(g.zTop)<hr>
+  @ g.zTop = %h(g.zTop)<br>
+  @ g.zExtra = %h(g.zExtra)<hr>
   cgi_print_all();
   style_footer();
 }