Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Restore the ability to delete a wiki page. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e947378e843cfdcdc1e406e5836c86de |
User & Date: | drh 2019-01-08 19:08:22.400 |
Context
2019-01-09
| ||
12:31 | Updated the Debian Stretch speculation bit at the end of the hashpolicy document with latest results from the forum thread. ... (check-in: 9d673f04 user: wyoung tags: trunk) | |
2019-01-08
| ||
19:08 | Restore the ability to delete a wiki page. ... (check-in: e947378e user: drh tags: trunk) | |
2019-01-07
| ||
01:32 | Fix a typo in the hashpolicy.wiki document. ... (check-in: 3b17294d user: drh tags: trunk) | |
Changes
Changes to src/wiki.c.
︙ | ︙ | |||
689 690 691 692 693 694 695 696 | style_submenu_element("Append", "%s/wikiappend?name=%T&mimetype=%s", g.zTop, zPageName, zMimetype); } if( !goodCaptcha ){ @ <p class="generalError">Error: Incorrect security code.</p> } blob_zero(&wiki); blob_append(&wiki, zBody, -1); | > | > | | | | > | 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 | style_submenu_element("Append", "%s/wikiappend?name=%T&mimetype=%s", g.zTop, zPageName, zMimetype); } if( !goodCaptcha ){ @ <p class="generalError">Error: Incorrect security code.</p> } blob_zero(&wiki); while( fossil_isspace(zBody[0]) ) zBody++; blob_append(&wiki, zBody, -1); if( P("preview")!=0 ){ havePreview = 1; if( zBody[0] ){ @ Preview:<hr /> wiki_render_by_mimetype(&wiki, zMimetype); @ <hr /> blob_reset(&wiki); } } for(n=2, z=zBody; z[0]; z++){ if( z[0]=='\n' ) n++; } if( n<20 ) n = 20; if( n>30 ) n = 30; if( !isWysiwyg ){ |
︙ | ︙ | |||
756 757 758 759 760 761 762 | blob_reset(&html); @ <br /> @ <input type="submit" name="edit-markup" value="Markup Editor" @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' /> } login_insert_csrf_secret(); if( havePreview ){ | > | > > > | 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 | blob_reset(&html); @ <br /> @ <input type="submit" name="edit-markup" value="Markup Editor" @ onclick='return confirm("Switching to markup-mode\nwill erase your WYSIWYG\nedits. Continue?")' /> } login_insert_csrf_secret(); if( havePreview ){ if( zBody[0] ){ @ <input type="submit" name="submit" value="Apply These Changes" /> }else{ @ <input type="submit" name="submit" value="Delete This Wiki Page" /> } } @ <input type="hidden" name="name" value="%h(zPageName)" /> @ <input type="submit" name="cancel" value="Cancel" @ onclick='confirm("Abandon your changes?")' /> @ </div> captcha_generate(0); @ </form> |
︙ | ︙ |