Fossil SCM
Merge changes from trunk.
Commit
4a8bc878f03b3bfef427800ff4a92f2df82eb6b4d2532009a30fdc92a1daaf5e
Parent
26ac4b1ccfb0d82…
7 files changed
+2
-1
+2
-1
+2
-1
+3
+3
+2
-1
+2
+2
-1
| --- src/backlink.c | ||
| +++ src/backlink.c | ||
| @@ -169,11 +169,12 @@ | ||
| 169 | 169 | rid = db_int(0, "SELECT rid FROM tagxref WHERE tagid=%d" |
| 170 | 170 | " ORDER BY mtime DESC LIMIT 1", tagid); |
| 171 | 171 | if( rid==0 ) return; |
| 172 | 172 | pWiki = manifest_get(rid, CFTYPE_WIKI, 0); |
| 173 | 173 | if( pWiki ){ |
| 174 | - backlink_extract(pWiki->zWiki, pWiki->zMimetype, tagid, 2, pWiki->rDate,1); | |
| 174 | + backlink_extract(pWiki->zWiki, pWiki->zMimetype, tagid, BKLNK_WIKI, | |
| 175 | + pWiki->rDate, 1); | |
| 175 | 176 | manifest_destroy(pWiki); |
| 176 | 177 | } |
| 177 | 178 | } |
| 178 | 179 | |
| 179 | 180 | /* |
| 180 | 181 |
| --- src/backlink.c | |
| +++ src/backlink.c | |
| @@ -169,11 +169,12 @@ | |
| 169 | rid = db_int(0, "SELECT rid FROM tagxref WHERE tagid=%d" |
| 170 | " ORDER BY mtime DESC LIMIT 1", tagid); |
| 171 | if( rid==0 ) return; |
| 172 | pWiki = manifest_get(rid, CFTYPE_WIKI, 0); |
| 173 | if( pWiki ){ |
| 174 | backlink_extract(pWiki->zWiki, pWiki->zMimetype, tagid, 2, pWiki->rDate,1); |
| 175 | manifest_destroy(pWiki); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | /* |
| 180 |
| --- src/backlink.c | |
| +++ src/backlink.c | |
| @@ -169,11 +169,12 @@ | |
| 169 | rid = db_int(0, "SELECT rid FROM tagxref WHERE tagid=%d" |
| 170 | " ORDER BY mtime DESC LIMIT 1", tagid); |
| 171 | if( rid==0 ) return; |
| 172 | pWiki = manifest_get(rid, CFTYPE_WIKI, 0); |
| 173 | if( pWiki ){ |
| 174 | backlink_extract(pWiki->zWiki, pWiki->zMimetype, tagid, BKLNK_WIKI, |
| 175 | pWiki->rDate, 1); |
| 176 | manifest_destroy(pWiki); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /* |
| 181 |
+2
-1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -732,11 +732,12 @@ | ||
| 732 | 732 | ** > fossil configuration export AREA FILENAME |
| 733 | 733 | ** |
| 734 | 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | 735 | ** AREA can be one of: |
| 736 | 736 | ** |
| 737 | -** all email project shun skin ticket user alias subscriber | |
| 737 | +** all email interwiki project shun skin | |
| 738 | +** ticket user alias subscriber | |
| 738 | 739 | ** |
| 739 | 740 | ** > fossil configuration import FILENAME |
| 740 | 741 | ** |
| 741 | 742 | ** Read a configuration from FILENAME, overwriting the current |
| 742 | 743 | ** configuration. |
| 743 | 744 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -732,11 +732,12 @@ | |
| 732 | ** > fossil configuration export AREA FILENAME |
| 733 | ** |
| 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | ** AREA can be one of: |
| 736 | ** |
| 737 | ** all email project shun skin ticket user alias subscriber |
| 738 | ** |
| 739 | ** > fossil configuration import FILENAME |
| 740 | ** |
| 741 | ** Read a configuration from FILENAME, overwriting the current |
| 742 | ** configuration. |
| 743 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -732,11 +732,12 @@ | |
| 732 | ** > fossil configuration export AREA FILENAME |
| 733 | ** |
| 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | ** AREA can be one of: |
| 736 | ** |
| 737 | ** all email interwiki project shun skin |
| 738 | ** ticket user alias subscriber |
| 739 | ** |
| 740 | ** > fossil configuration import FILENAME |
| 741 | ** |
| 742 | ** Read a configuration from FILENAME, overwriting the current |
| 743 | ** configuration. |
| 744 |
+2
-1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -732,11 +732,12 @@ | ||
| 732 | 732 | ** > fossil configuration export AREA FILENAME |
| 733 | 733 | ** |
| 734 | 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | 735 | ** AREA can be one of: |
| 736 | 736 | ** |
| 737 | -** all email project shun skin ticket user alias subscriber | |
| 737 | +** all email interwiki project shun skin | |
| 738 | +** ticket user alias subscriber | |
| 738 | 739 | ** |
| 739 | 740 | ** > fossil configuration import FILENAME |
| 740 | 741 | ** |
| 741 | 742 | ** Read a configuration from FILENAME, overwriting the current |
| 742 | 743 | ** configuration. |
| 743 | 744 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -732,11 +732,12 @@ | |
| 732 | ** > fossil configuration export AREA FILENAME |
| 733 | ** |
| 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | ** AREA can be one of: |
| 736 | ** |
| 737 | ** all email project shun skin ticket user alias subscriber |
| 738 | ** |
| 739 | ** > fossil configuration import FILENAME |
| 740 | ** |
| 741 | ** Read a configuration from FILENAME, overwriting the current |
| 742 | ** configuration. |
| 743 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -732,11 +732,12 @@ | |
| 732 | ** > fossil configuration export AREA FILENAME |
| 733 | ** |
| 734 | ** Write to FILENAME exported configuration information for AREA. |
| 735 | ** AREA can be one of: |
| 736 | ** |
| 737 | ** all email interwiki project shun skin |
| 738 | ** ticket user alias subscriber |
| 739 | ** |
| 740 | ** > fossil configuration import FILENAME |
| 741 | ** |
| 742 | ** Read a configuration from FILENAME, overwriting the current |
| 743 | ** configuration. |
| 744 |
+3
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -2676,10 +2676,13 @@ | ||
| 2676 | 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | 2678 | ); |
| 2679 | 2679 | fossil_free(zTitle); |
| 2680 | 2680 | } |
| 2681 | + if( p->zWiki[0] ){ | |
| 2682 | + backlink_extract(p->zWiki, p->zMimetype, rid, BKLNK_FORUM, p->rDate, 1); | |
| 2683 | + } | |
| 2681 | 2684 | } |
| 2682 | 2685 | db_end_transaction(0); |
| 2683 | 2686 | if( permitHooks ){ |
| 2684 | 2687 | rc = xfer_run_common_script(); |
| 2685 | 2688 | if( rc==TH_OK ){ |
| 2686 | 2689 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2676,10 +2676,13 @@ | |
| 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | ); |
| 2679 | fossil_free(zTitle); |
| 2680 | } |
| 2681 | } |
| 2682 | db_end_transaction(0); |
| 2683 | if( permitHooks ){ |
| 2684 | rc = xfer_run_common_script(); |
| 2685 | if( rc==TH_OK ){ |
| 2686 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2676,10 +2676,13 @@ | |
| 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | ); |
| 2679 | fossil_free(zTitle); |
| 2680 | } |
| 2681 | if( p->zWiki[0] ){ |
| 2682 | backlink_extract(p->zWiki, p->zMimetype, rid, BKLNK_FORUM, p->rDate, 1); |
| 2683 | } |
| 2684 | } |
| 2685 | db_end_transaction(0); |
| 2686 | if( permitHooks ){ |
| 2687 | rc = xfer_run_common_script(); |
| 2688 | if( rc==TH_OK ){ |
| 2689 |
+3
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -2676,10 +2676,13 @@ | ||
| 2676 | 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | 2678 | ); |
| 2679 | 2679 | fossil_free(zTitle); |
| 2680 | 2680 | } |
| 2681 | + if( p->zWiki[0] ){ | |
| 2682 | + backlink_extract(p->zWiki, p->zMimetype, rid, BKLNK_FORUM, p->rDate, 1); | |
| 2683 | + } | |
| 2681 | 2684 | } |
| 2682 | 2685 | db_end_transaction(0); |
| 2683 | 2686 | if( permitHooks ){ |
| 2684 | 2687 | rc = xfer_run_common_script(); |
| 2685 | 2688 | if( rc==TH_OK ){ |
| 2686 | 2689 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2676,10 +2676,13 @@ | |
| 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | ); |
| 2679 | fossil_free(zTitle); |
| 2680 | } |
| 2681 | } |
| 2682 | db_end_transaction(0); |
| 2683 | if( permitHooks ){ |
| 2684 | rc = xfer_run_common_script(); |
| 2685 | if( rc==TH_OK ){ |
| 2686 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -2676,10 +2676,13 @@ | |
| 2676 | "VALUES('f',%.17g,%d,%Q,'%q: %q')", |
| 2677 | p->rDate, rid, p->zUser, zFType, zTitle |
| 2678 | ); |
| 2679 | fossil_free(zTitle); |
| 2680 | } |
| 2681 | if( p->zWiki[0] ){ |
| 2682 | backlink_extract(p->zWiki, p->zMimetype, rid, BKLNK_FORUM, p->rDate, 1); |
| 2683 | } |
| 2684 | } |
| 2685 | db_end_transaction(0); |
| 2686 | if( permitHooks ){ |
| 2687 | rc = xfer_run_common_script(); |
| 2688 | if( rc==TH_OK ){ |
| 2689 |
+2
-1
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -1004,11 +1004,12 @@ | ||
| 1004 | 1004 | Stmt q = empty_Stmt; |
| 1005 | 1005 | int n = 0; |
| 1006 | 1006 | db_begin_transaction(); |
| 1007 | 1007 | db_prepare(&q, "SELECT" |
| 1008 | 1008 | " substr(tagname,6) AS name" |
| 1009 | - " FROM tag WHERE tagname GLOB 'wiki-*'" | |
| 1009 | + " FROM tag JOIN tagxref USING('tagid')" | |
| 1010 | + " WHERE tagname GLOB 'wiki-*'" | |
| 1010 | 1011 | " UNION SELECT 'Sandbox' AS name" |
| 1011 | 1012 | " ORDER BY name COLLATE NOCASE"); |
| 1012 | 1013 | CX("["); |
| 1013 | 1014 | while( SQLITE_ROW==db_step(&q) ){ |
| 1014 | 1015 | char const * zName = db_column_text(&q,0); |
| 1015 | 1016 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1004,11 +1004,12 @@ | |
| 1004 | Stmt q = empty_Stmt; |
| 1005 | int n = 0; |
| 1006 | db_begin_transaction(); |
| 1007 | db_prepare(&q, "SELECT" |
| 1008 | " substr(tagname,6) AS name" |
| 1009 | " FROM tag WHERE tagname GLOB 'wiki-*'" |
| 1010 | " UNION SELECT 'Sandbox' AS name" |
| 1011 | " ORDER BY name COLLATE NOCASE"); |
| 1012 | CX("["); |
| 1013 | while( SQLITE_ROW==db_step(&q) ){ |
| 1014 | char const * zName = db_column_text(&q,0); |
| 1015 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -1004,11 +1004,12 @@ | |
| 1004 | Stmt q = empty_Stmt; |
| 1005 | int n = 0; |
| 1006 | db_begin_transaction(); |
| 1007 | db_prepare(&q, "SELECT" |
| 1008 | " substr(tagname,6) AS name" |
| 1009 | " FROM tag JOIN tagxref USING('tagid')" |
| 1010 | " WHERE tagname GLOB 'wiki-*'" |
| 1011 | " UNION SELECT 'Sandbox' AS name" |
| 1012 | " ORDER BY name COLLATE NOCASE"); |
| 1013 | CX("["); |
| 1014 | while( SQLITE_ROW==db_step(&q) ){ |
| 1015 | char const * zName = db_column_text(&q,0); |
| 1016 |
+2
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -2,10 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | <a name='v2_13'></a> |
| 4 | 4 | <h2>Changes for Version 2.13 (pending)</h2> |
| 5 | 5 | |
| 6 | 6 | * Added support for [./interwiki.md|interwiki links]. |
| 7 | + * Enable <del> and <ins> markup in wiki. | |
| 8 | + * Improvements to the Forum threading display. | |
| 7 | 9 | |
| 8 | 10 | <a name='v2_12'></a> |
| 9 | 11 | <h2>Changes for Version 2.12.1 (2020-08-20)</h2> |
| 10 | 12 | |
| 11 | 13 | * (2.12.1): Fix client-side vulnerabilities discovered by Max Justicz. |
| 12 | 14 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -2,10 +2,12 @@ | |
| 2 | |
| 3 | <a name='v2_13'></a> |
| 4 | <h2>Changes for Version 2.13 (pending)</h2> |
| 5 | |
| 6 | * Added support for [./interwiki.md|interwiki links]. |
| 7 | |
| 8 | <a name='v2_12'></a> |
| 9 | <h2>Changes for Version 2.12.1 (2020-08-20)</h2> |
| 10 | |
| 11 | * (2.12.1): Fix client-side vulnerabilities discovered by Max Justicz. |
| 12 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -2,10 +2,12 @@ | |
| 2 | |
| 3 | <a name='v2_13'></a> |
| 4 | <h2>Changes for Version 2.13 (pending)</h2> |
| 5 | |
| 6 | * Added support for [./interwiki.md|interwiki links]. |
| 7 | * Enable <del> and <ins> markup in wiki. |
| 8 | * Improvements to the Forum threading display. |
| 9 | |
| 10 | <a name='v2_12'></a> |
| 11 | <h2>Changes for Version 2.12.1 (2020-08-20)</h2> |
| 12 | |
| 13 | * (2.12.1): Fix client-side vulnerabilities discovered by Max Justicz. |
| 14 |