Fossil SCM
FIXME-comments in the code did not indicate issues and are now rephrased to be mere reminders.
Commit
d253ece08a07b8b2877451a47e974237c5cd283eb56de831f81b4bdb31b051ce
Parent
89dd34519f45433…
3 files changed
+2
-2
+6
-4
+6
-4
+2
-2
| --- src/extcgi.c | ||
| +++ src/extcgi.c | ||
| @@ -229,12 +229,12 @@ | ||
| 229 | 229 | goto ext_not_found; |
| 230 | 230 | } |
| 231 | 231 | assert( nScript>=nRoot+1 ); |
| 232 | 232 | style_set_current_page("ext/%s", &zScript[nRoot+1]); |
| 233 | 233 | |
| 234 | - /* FIXME: a call to style_set_base_href_suffix() skipped | |
| 235 | - * because we want #fragment links to work under /ext */ | |
| 234 | + /* Overriding of base href disabled as part of 'base-href-fix' branch | |
| 235 | + ** otherwise #fragment links may break under /ext */ | |
| 236 | 236 | |
| 237 | 237 | zMime = mimetype_from_name(zScript); |
| 238 | 238 | if( zMime==0 ) zMime = "application/octet-stream"; |
| 239 | 239 | if( !file_isexe(zScript, ExtFILE) ){ |
| 240 | 240 | /* File is not executable. Must be a regular file. In that case, |
| 241 | 241 |
| --- src/extcgi.c | |
| +++ src/extcgi.c | |
| @@ -229,12 +229,12 @@ | |
| 229 | goto ext_not_found; |
| 230 | } |
| 231 | assert( nScript>=nRoot+1 ); |
| 232 | style_set_current_page("ext/%s", &zScript[nRoot+1]); |
| 233 | |
| 234 | /* FIXME: a call to style_set_base_href_suffix() skipped |
| 235 | * because we want #fragment links to work under /ext */ |
| 236 | |
| 237 | zMime = mimetype_from_name(zScript); |
| 238 | if( zMime==0 ) zMime = "application/octet-stream"; |
| 239 | if( !file_isexe(zScript, ExtFILE) ){ |
| 240 | /* File is not executable. Must be a regular file. In that case, |
| 241 |
| --- src/extcgi.c | |
| +++ src/extcgi.c | |
| @@ -229,12 +229,12 @@ | |
| 229 | goto ext_not_found; |
| 230 | } |
| 231 | assert( nScript>=nRoot+1 ); |
| 232 | style_set_current_page("ext/%s", &zScript[nRoot+1]); |
| 233 | |
| 234 | /* Overriding of base href disabled as part of 'base-href-fix' branch |
| 235 | ** otherwise #fragment links may break under /ext */ |
| 236 | |
| 237 | zMime = mimetype_from_name(zScript); |
| 238 | if( zMime==0 ) zMime = "application/octet-stream"; |
| 239 | if( !file_isexe(zScript, ExtFILE) ){ |
| 240 | /* File is not executable. Must be a regular file. In that case, |
| 241 |
+6
-4
| --- src/fossil.page.wikiedit.js | ||
| +++ src/fossil.page.wikiedit.js | ||
| @@ -884,12 +884,13 @@ | ||
| 884 | 884 | btnSlot.parentNode.insertBefore( P.e.btnSaveClose.parentNode, btnSlot ); |
| 885 | 885 | P.updateSaveButton(); |
| 886 | 886 | } |
| 887 | 887 | if(theTab===P.e.tabs.preview){ |
| 888 | 888 | |
| 889 | - /* FIXME: P.baseHrefForWiki(); | |
| 890 | - ** Overriding of base href disabled as part of 'base-href-fix' branch | |
| 889 | + /* Overriding of base href disabled as part of 'base-href-fix' branch | |
| 890 | + ** To bring back the old behavior uncomment the following call | |
| 891 | + ** P.baseHrefForWiki(); | |
| 891 | 892 | */ |
| 892 | 893 | if(P.previewNeedsUpdate && P.e.cbAutoPreview.checked) P.preview(); |
| 893 | 894 | }else if(theTab===P.e.tabs.diff){ |
| 894 | 895 | /* Work around a weird bug where the page gets wider than |
| 895 | 896 | the window when the diff tab is NOT in view and the |
| @@ -907,12 +908,13 @@ | ||
| 907 | 908 | /* Set up auto-refresh of the preview tab... */ |
| 908 | 909 | 'before-switch-from', function(ev){ |
| 909 | 910 | const theTab = ev.detail; |
| 910 | 911 | if(theTab===P.e.tabs.preview){ |
| 911 | 912 | |
| 912 | - /* FIXME: P.baseHrefRestore(); | |
| 913 | - ** Overriding of base href disabled as part of 'base-href-fix' branch | |
| 913 | + /* Overriding of base href disabled as part of 'base-href-fix' branch | |
| 914 | + ** To bring back the old behavior uncomment the following call | |
| 915 | + ** P.baseHrefRestore(); | |
| 914 | 916 | */ |
| 915 | 917 | }else if(theTab===P.e.tabs.diff){ |
| 916 | 918 | /* See notes in the before-switch-to handler. */ |
| 917 | 919 | D.addClass(P.e.diffTarget, 'hidden'); |
| 918 | 920 | } |
| 919 | 921 |
| --- src/fossil.page.wikiedit.js | |
| +++ src/fossil.page.wikiedit.js | |
| @@ -884,12 +884,13 @@ | |
| 884 | btnSlot.parentNode.insertBefore( P.e.btnSaveClose.parentNode, btnSlot ); |
| 885 | P.updateSaveButton(); |
| 886 | } |
| 887 | if(theTab===P.e.tabs.preview){ |
| 888 | |
| 889 | /* FIXME: P.baseHrefForWiki(); |
| 890 | ** Overriding of base href disabled as part of 'base-href-fix' branch |
| 891 | */ |
| 892 | if(P.previewNeedsUpdate && P.e.cbAutoPreview.checked) P.preview(); |
| 893 | }else if(theTab===P.e.tabs.diff){ |
| 894 | /* Work around a weird bug where the page gets wider than |
| 895 | the window when the diff tab is NOT in view and the |
| @@ -907,12 +908,13 @@ | |
| 907 | /* Set up auto-refresh of the preview tab... */ |
| 908 | 'before-switch-from', function(ev){ |
| 909 | const theTab = ev.detail; |
| 910 | if(theTab===P.e.tabs.preview){ |
| 911 | |
| 912 | /* FIXME: P.baseHrefRestore(); |
| 913 | ** Overriding of base href disabled as part of 'base-href-fix' branch |
| 914 | */ |
| 915 | }else if(theTab===P.e.tabs.diff){ |
| 916 | /* See notes in the before-switch-to handler. */ |
| 917 | D.addClass(P.e.diffTarget, 'hidden'); |
| 918 | } |
| 919 |
| --- src/fossil.page.wikiedit.js | |
| +++ src/fossil.page.wikiedit.js | |
| @@ -884,12 +884,13 @@ | |
| 884 | btnSlot.parentNode.insertBefore( P.e.btnSaveClose.parentNode, btnSlot ); |
| 885 | P.updateSaveButton(); |
| 886 | } |
| 887 | if(theTab===P.e.tabs.preview){ |
| 888 | |
| 889 | /* Overriding of base href disabled as part of 'base-href-fix' branch |
| 890 | ** To bring back the old behavior uncomment the following call |
| 891 | ** P.baseHrefForWiki(); |
| 892 | */ |
| 893 | if(P.previewNeedsUpdate && P.e.cbAutoPreview.checked) P.preview(); |
| 894 | }else if(theTab===P.e.tabs.diff){ |
| 895 | /* Work around a weird bug where the page gets wider than |
| 896 | the window when the diff tab is NOT in view and the |
| @@ -907,12 +908,13 @@ | |
| 908 | /* Set up auto-refresh of the preview tab... */ |
| 909 | 'before-switch-from', function(ev){ |
| 910 | const theTab = ev.detail; |
| 911 | if(theTab===P.e.tabs.preview){ |
| 912 | |
| 913 | /* Overriding of base href disabled as part of 'base-href-fix' branch |
| 914 | ** To bring back the old behavior uncomment the following call |
| 915 | ** P.baseHrefRestore(); |
| 916 | */ |
| 917 | }else if(theTab===P.e.tabs.diff){ |
| 918 | /* See notes in the before-switch-to handler. */ |
| 919 | D.addClass(P.e.diffTarget, 'hidden'); |
| 920 | } |
| 921 |
+6
-4
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -598,12 +598,13 @@ | ||
| 598 | 598 | } |
| 599 | 599 | } |
| 600 | 600 | if( !isPopup ){ |
| 601 | 601 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 602 | 602 | |
| 603 | - /* FIXME: style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); | |
| 604 | - ** Overriding of base href disabled as part of 'base-href-fix' branch | |
| 603 | + /* Overriding of base href disabled as part of 'base-href-fix' branch | |
| 604 | + ** To bring back the old behavior uncomment the following call | |
| 605 | + ** style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); | |
| 605 | 606 | */ |
| 606 | 607 | wiki_page_header(WIKITYPE_UNKNOWN, zPageName, ""); |
| 607 | 608 | if( !noSubmenu ){ |
| 608 | 609 | wiki_standard_submenu(submenuFlags); |
| 609 | 610 | } |
| @@ -1674,12 +1675,13 @@ | ||
| 1674 | 1675 | cgi_redirectf("wiki?name=%T", zPageName); |
| 1675 | 1676 | return; |
| 1676 | 1677 | } |
| 1677 | 1678 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 1678 | 1679 | |
| 1679 | - /* FIXME: style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); | |
| 1680 | - ** Overriding of base href disabled as part of 'base-href-fix' branch | |
| 1680 | + /* Overriding of base href disabled as part of 'base-href-fix' branch | |
| 1681 | + ** To bring back the old behavior uncomment the following call | |
| 1682 | + ** style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); | |
| 1681 | 1683 | */ |
| 1682 | 1684 | style_set_current_feature("wiki"); |
| 1683 | 1685 | style_header("Append Comment To: %s", zPageName); |
| 1684 | 1686 | if( !goodCaptcha ){ |
| 1685 | 1687 | @ <p class="generalError">Error: Incorrect security code.</p> |
| 1686 | 1688 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -598,12 +598,13 @@ | |
| 598 | } |
| 599 | } |
| 600 | if( !isPopup ){ |
| 601 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 602 | |
| 603 | /* FIXME: style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); |
| 604 | ** Overriding of base href disabled as part of 'base-href-fix' branch |
| 605 | */ |
| 606 | wiki_page_header(WIKITYPE_UNKNOWN, zPageName, ""); |
| 607 | if( !noSubmenu ){ |
| 608 | wiki_standard_submenu(submenuFlags); |
| 609 | } |
| @@ -1674,12 +1675,13 @@ | |
| 1674 | cgi_redirectf("wiki?name=%T", zPageName); |
| 1675 | return; |
| 1676 | } |
| 1677 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 1678 | |
| 1679 | /* FIXME: style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); |
| 1680 | ** Overriding of base href disabled as part of 'base-href-fix' branch |
| 1681 | */ |
| 1682 | style_set_current_feature("wiki"); |
| 1683 | style_header("Append Comment To: %s", zPageName); |
| 1684 | if( !goodCaptcha ){ |
| 1685 | @ <p class="generalError">Error: Incorrect security code.</p> |
| 1686 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -598,12 +598,13 @@ | |
| 598 | } |
| 599 | } |
| 600 | if( !isPopup ){ |
| 601 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 602 | |
| 603 | /* Overriding of base href disabled as part of 'base-href-fix' branch |
| 604 | ** To bring back the old behavior uncomment the following call |
| 605 | ** style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); |
| 606 | */ |
| 607 | wiki_page_header(WIKITYPE_UNKNOWN, zPageName, ""); |
| 608 | if( !noSubmenu ){ |
| 609 | wiki_standard_submenu(submenuFlags); |
| 610 | } |
| @@ -1674,12 +1675,13 @@ | |
| 1675 | cgi_redirectf("wiki?name=%T", zPageName); |
| 1676 | return; |
| 1677 | } |
| 1678 | style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 1679 | |
| 1680 | /* Overriding of base href disabled as part of 'base-href-fix' branch |
| 1681 | ** To bring back the old behavior uncomment the following call |
| 1682 | ** style_set_base_href_suffix("%T?name=%T", g.zPath, zPageName); |
| 1683 | */ |
| 1684 | style_set_current_feature("wiki"); |
| 1685 | style_header("Append Comment To: %s", zPageName); |
| 1686 | if( !goodCaptcha ){ |
| 1687 | @ <p class="generalError">Error: Incorrect security code.</p> |
| 1688 |