Fossil SCM

Require Read permission for the /ambiguous page, which lists the artifacts whose hash begins with a given prefix, with their descriptions.

dmestas 2026-11-22 11:03 UTC small-fixes
Commit db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c
1 file changed +2
+2
--- src/name.c
+++ src/name.c
@@ -1000,10 +1000,12 @@
10001000
Stmt q;
10011001
const char *zName = P("name");
10021002
const char *zSrc = PD("src","info");
10031003
char *z;
10041004
1005
+ login_check_credentials();
1006
+ if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
10051007
if( zName==0 || zName[0]==0 || zSrc==0 || zSrc[0]==0 ){
10061008
fossil_redirect_home();
10071009
}
10081010
style_header("Ambiguous Artifact ID");
10091011
@ <p>The artifact hash prefix <b>%h(zName)</b> is ambiguous and might
10101012
--- src/name.c
+++ src/name.c
@@ -1000,10 +1000,12 @@
1000 Stmt q;
1001 const char *zName = P("name");
1002 const char *zSrc = PD("src","info");
1003 char *z;
1004
 
 
1005 if( zName==0 || zName[0]==0 || zSrc==0 || zSrc[0]==0 ){
1006 fossil_redirect_home();
1007 }
1008 style_header("Ambiguous Artifact ID");
1009 @ <p>The artifact hash prefix <b>%h(zName)</b> is ambiguous and might
1010
--- src/name.c
+++ src/name.c
@@ -1000,10 +1000,12 @@
1000 Stmt q;
1001 const char *zName = P("name");
1002 const char *zSrc = PD("src","info");
1003 char *z;
1004
1005 login_check_credentials();
1006 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1007 if( zName==0 || zName[0]==0 || zSrc==0 || zSrc[0]==0 ){
1008 fossil_redirect_home();
1009 }
1010 style_header("Ambiguous Artifact ID");
1011 @ <p>The artifact hash prefix <b>%h(zName)</b> is ambiguous and might
1012

Keyboard Shortcuts

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