Fossil SCM

If the dp= and r= query parameters are both supplied to /timeline, use only the r= query parameter and ignore dp=.

drh 2018-03-19 20:24 trunk
Commit 7c690c08967c235d2edf89004c6a9dc6914e0887b6217d7060b6224ad888604c
1 file changed +1 -1
+1 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1661,11 +1661,11 @@
16611661
db_int(0, "SELECT count(*) FROM timeline"));
16621662
blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h", zFrom), zFrom);
16631663
blob_append(&desc, " to ", -1);
16641664
blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h",zTo), zTo);
16651665
addFileGlobDescription(zChng, &desc);
1666
- }else if( (p_rid || d_rid) && g.perm.Read ){
1666
+ }else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){
16671667
/* If p= or d= is present, ignore all other parameters other than n= */
16681668
char *zUuid;
16691669
int np, nd;
16701670
16711671
tmFlags |= TIMELINE_DISJOINT;
16721672
--- src/timeline.c
+++ src/timeline.c
@@ -1661,11 +1661,11 @@
1661 db_int(0, "SELECT count(*) FROM timeline"));
1662 blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h", zFrom), zFrom);
1663 blob_append(&desc, " to ", -1);
1664 blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h",zTo), zTo);
1665 addFileGlobDescription(zChng, &desc);
1666 }else if( (p_rid || d_rid) && g.perm.Read ){
1667 /* If p= or d= is present, ignore all other parameters other than n= */
1668 char *zUuid;
1669 int np, nd;
1670
1671 tmFlags |= TIMELINE_DISJOINT;
1672
--- src/timeline.c
+++ src/timeline.c
@@ -1661,11 +1661,11 @@
1661 db_int(0, "SELECT count(*) FROM timeline"));
1662 blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h", zFrom), zFrom);
1663 blob_append(&desc, " to ", -1);
1664 blob_appendf(&desc, "%z[%h]</a>", href("%R/info/%h",zTo), zTo);
1665 addFileGlobDescription(zChng, &desc);
1666 }else if( (p_rid || d_rid) && g.perm.Read && zTagSql==0 ){
1667 /* If p= or d= is present, ignore all other parameters other than n= */
1668 char *zUuid;
1669 int np, nd;
1670
1671 tmFlags |= TIMELINE_DISJOINT;
1672

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button