Fossil SCM
Inhibit timeline links to wiki pages that have been deleted.
Commit
e6dae0228d338f72da610beb9b829fe32f7913fc
Parent
b824b3e7f7ec7f2…
2 files changed
+3
-1
+1
+3
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1151,11 +1151,13 @@ | ||
| 1151 | 1151 | return zTarget+5; |
| 1152 | 1152 | } |
| 1153 | 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | - db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'", zTarget)) | |
| 1156 | + db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'" | |
| 1157 | + " AND (SELECT value FROM tagxref WHERE tagid=tag.tagid" | |
| 1158 | + " ORDER BY mtime DESC LIMIT 1) > 0", zTarget)) | |
| 1157 | 1159 | ){ |
| 1158 | 1160 | return zTarget; |
| 1159 | 1161 | } |
| 1160 | 1162 | return 0; |
| 1161 | 1163 | } |
| 1162 | 1164 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1151,11 +1151,13 @@ | |
| 1151 | return zTarget+5; |
| 1152 | } |
| 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'", zTarget)) |
| 1157 | ){ |
| 1158 | return zTarget; |
| 1159 | } |
| 1160 | return 0; |
| 1161 | } |
| 1162 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1151,11 +1151,13 @@ | |
| 1151 | return zTarget+5; |
| 1152 | } |
| 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'" |
| 1157 | " AND (SELECT value FROM tagxref WHERE tagid=tag.tagid" |
| 1158 | " ORDER BY mtime DESC LIMIT 1) > 0", zTarget)) |
| 1159 | ){ |
| 1160 | return zTarget; |
| 1161 | } |
| 1162 | return 0; |
| 1163 | } |
| 1164 |
+1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -40,10 +40,11 @@ | ||
| 40 | 40 | symlink. Additionally show the UUID for files whose types have changed |
| 41 | 41 | without changing contents or symlink target. |
| 42 | 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | 44 | changes on otherwise unmodified files. |
| 45 | + * Inhibit timeline links to wiki pages that have been deleted. | |
| 45 | 46 | |
| 46 | 47 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 47 | 48 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 48 | 49 | that the new repository is fully compatible with historical versions of |
| 49 | 50 | Fossil by having a valid manifest as RID 1. |
| 50 | 51 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -40,10 +40,11 @@ | |
| 40 | symlink. Additionally show the UUID for files whose types have changed |
| 41 | without changing contents or symlink target. |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | |
| 46 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 47 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 48 | that the new repository is fully compatible with historical versions of |
| 49 | Fossil by having a valid manifest as RID 1. |
| 50 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -40,10 +40,11 @@ | |
| 40 | symlink. Additionally show the UUID for files whose types have changed |
| 41 | without changing contents or symlink target. |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | * Inhibit timeline links to wiki pages that have been deleted. |
| 46 | |
| 47 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 48 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 49 | that the new repository is fully compatible with historical versions of |
| 50 | Fossil by having a valid manifest as RID 1. |
| 51 |