Fossil

Check-in [48cf0994]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in TH1 trace output.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ticket-enhancements
Files: files | file ages | folders
SHA1:48cf099427aab8ed754d007272055e4b45ad83d6
User & Date: drh 2012-11-24 22:40:31
Context
2012-11-24
23:07
When --httptrace is used with "fossil ui" or "fossil server", create log files containing the text of each HTTP request. check-in: 6f3d328f user: drh tags: ticket-enhancements
22:40
Fix a bug in TH1 trace output. check-in: 48cf0994 user: drh tags: ticket-enhancements
20:53
Add support fo the TICKETCHNG table in the repository database. check-in: 48645c39 user: drh tags: ticket-enhancements
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/th_main.c.

886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
      zResult = (char*)Th_GetResult(g.interp, &n);
      sendText((char*)zResult, n, encode);
    }else if( z[i]=='<' && isBeginScriptTag(&z[i]) ){
      sendText(z, i, 0);
      z += i+5;
      for(i=0; z[i] && (z[i]!='<' || !isEndScriptTag(&z[i])); i++){}
      if( g.thTrace ){
        Th_Trace("eval %d{<pre>%.*h</pre>}<br>", i, i, z);
      }
      rc = Th_Eval(g.interp, 0, (const char*)z, i);
      if( rc!=TH_OK ) break;
      z += i;
      if( z[0] ){ z += 6; }
      i = 0;
    }else{







|







886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
      zResult = (char*)Th_GetResult(g.interp, &n);
      sendText((char*)zResult, n, encode);
    }else if( z[i]=='<' && isBeginScriptTag(&z[i]) ){
      sendText(z, i, 0);
      z += i+5;
      for(i=0; z[i] && (z[i]!='<' || !isEndScriptTag(&z[i])); i++){}
      if( g.thTrace ){
        Th_Trace("eval {<pre>%#h</pre>}<br>", i, z);
      }
      rc = Th_Eval(g.interp, 0, (const char*)z, i);
      if( rc!=TH_OK ) break;
      z += i;
      if( z[0] ){ z += 6; }
      i = 0;
    }else{