Fossil

Check-in [42190026]
Login

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

Overview
Comment:Restore legacy title handling behavior for TH1 docs (changed via check-in [8abeb62737c2b527]).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | noJsonCgiFlag
Files: files | file ages | folders
SHA3-256: 42190026313a1f926db3762a957993e5ee2af1a076ddd195bd0d353ec72f5265
User & Date: mistachkin 2019-08-27 07:21:45
Context
2019-08-27
10:40
Query and post parameters may never begin with an upper-case letter. To allow that is a huge security hole. check-in: 72c721ea user: drh tags: noJsonCgiFlag
07:21
Restore legacy title handling behavior for TH1 docs (changed via check-in [8abeb62737c2b527]). check-in: 42190026 user: mistachkin tags: noJsonCgiFlag
06:50
Attempt to fix 'CONTENT_TYPE' detection when a suffix, e.g. '; charset=utf-8', is present. check-in: 891bbc6f user: mistachkin tags: noJsonCgiFlag
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/doc.c.

593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
      Blob tail;
      blob_zero(&tail);
      if( wiki_find_title(pBody, &title, &tail) ){
        style_header("%s", blob_str(&title));
        Th_Render(blob_str(&tail));
        blob_reset(&tail);
      }else{
        style_header("%h", zDefaultTitle);
        Th_Render(blob_str(pBody));
      }
    }else{
      Th_Render(blob_str(pBody));
    }
    if( !raw ){
      style_footer();







|







593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
      Blob tail;
      blob_zero(&tail);
      if( wiki_find_title(pBody, &title, &tail) ){
        style_header("%s", blob_str(&title));
        Th_Render(blob_str(&tail));
        blob_reset(&tail);
      }else{
        style_header("%h", zFilename);
        Th_Render(blob_str(pBody));
      }
    }else{
      Th_Render(blob_str(pBody));
    }
    if( !raw ){
      style_footer();