Fossil SCM
Prevent incorrect attachment links from appearing on the timeline. Reported via the mailing list.
Commit
359399307eec47efd02a7086e66111ca8d6ddb63
Parent
9147aa2c5b4dbdb…
1 file changed
+2
-2
+2
-2
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -1899,11 +1899,11 @@ | ||
| 1899 | 1899 | || !validate16(p->zAttachTarget, UUID_SIZE) |
| 1900 | 1900 | ){ |
| 1901 | 1901 | char *zComment; |
| 1902 | 1902 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1903 | 1903 | zComment = mprintf( |
| 1904 | - "Add attachment [%R/artifact/%S|%h] to wiki page [%h]", | |
| 1904 | + "Add attachment [/artifact/%S|%h] to wiki page [%h]", | |
| 1905 | 1905 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1906 | 1906 | }else{ |
| 1907 | 1907 | zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]", |
| 1908 | 1908 | p->zAttachName, p->zAttachTarget); |
| 1909 | 1909 | } |
| @@ -1915,11 +1915,11 @@ | ||
| 1915 | 1915 | free(zComment); |
| 1916 | 1916 | }else{ |
| 1917 | 1917 | char *zComment; |
| 1918 | 1918 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1919 | 1919 | zComment = mprintf( |
| 1920 | - "Add attachment [%R/artifact/%S|%h] to ticket [%S]", | |
| 1920 | + "Add attachment [/artifact/%S|%h] to ticket [%S]", | |
| 1921 | 1921 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1922 | 1922 | }else{ |
| 1923 | 1923 | zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]", |
| 1924 | 1924 | p->zAttachName, p->zAttachTarget); |
| 1925 | 1925 | } |
| 1926 | 1926 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1899,11 +1899,11 @@ | |
| 1899 | || !validate16(p->zAttachTarget, UUID_SIZE) |
| 1900 | ){ |
| 1901 | char *zComment; |
| 1902 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1903 | zComment = mprintf( |
| 1904 | "Add attachment [%R/artifact/%S|%h] to wiki page [%h]", |
| 1905 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1906 | }else{ |
| 1907 | zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]", |
| 1908 | p->zAttachName, p->zAttachTarget); |
| 1909 | } |
| @@ -1915,11 +1915,11 @@ | |
| 1915 | free(zComment); |
| 1916 | }else{ |
| 1917 | char *zComment; |
| 1918 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1919 | zComment = mprintf( |
| 1920 | "Add attachment [%R/artifact/%S|%h] to ticket [%S]", |
| 1921 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1922 | }else{ |
| 1923 | zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]", |
| 1924 | p->zAttachName, p->zAttachTarget); |
| 1925 | } |
| 1926 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1899,11 +1899,11 @@ | |
| 1899 | || !validate16(p->zAttachTarget, UUID_SIZE) |
| 1900 | ){ |
| 1901 | char *zComment; |
| 1902 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1903 | zComment = mprintf( |
| 1904 | "Add attachment [/artifact/%S|%h] to wiki page [%h]", |
| 1905 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1906 | }else{ |
| 1907 | zComment = mprintf("Delete attachment \"%h\" from wiki page [%h]", |
| 1908 | p->zAttachName, p->zAttachTarget); |
| 1909 | } |
| @@ -1915,11 +1915,11 @@ | |
| 1915 | free(zComment); |
| 1916 | }else{ |
| 1917 | char *zComment; |
| 1918 | if( p->zAttachSrc && p->zAttachSrc[0] ){ |
| 1919 | zComment = mprintf( |
| 1920 | "Add attachment [/artifact/%S|%h] to ticket [%S]", |
| 1921 | p->zAttachSrc, p->zAttachName, p->zAttachTarget); |
| 1922 | }else{ |
| 1923 | zComment = mprintf("Delete attachment \"%h\" from ticket [%.10s]", |
| 1924 | p->zAttachName, p->zAttachTarget); |
| 1925 | } |
| 1926 |