Fossil SCM
Require Read permission for the /ambiguous page, which lists the artifacts whose hash begins with a given prefix, with their descriptions.
Commit
db14caf5712c7e069d703d02ba02a82959cee2122d2b88e34b4e7d0bde70429c
Parent
11e2cce1f9af37f…
1 file changed
+2
+2
| --- src/name.c | ||
| +++ src/name.c | ||
| @@ -1000,10 +1000,12 @@ | ||
| 1000 | 1000 | Stmt q; |
| 1001 | 1001 | const char *zName = P("name"); |
| 1002 | 1002 | const char *zSrc = PD("src","info"); |
| 1003 | 1003 | char *z; |
| 1004 | 1004 | |
| 1005 | + login_check_credentials(); | |
| 1006 | + if( !g.perm.Read ){ login_needed(g.anon.Read); return; } | |
| 1005 | 1007 | if( zName==0 || zName[0]==0 || zSrc==0 || zSrc[0]==0 ){ |
| 1006 | 1008 | fossil_redirect_home(); |
| 1007 | 1009 | } |
| 1008 | 1010 | style_header("Ambiguous Artifact ID"); |
| 1009 | 1011 | @ <p>The artifact hash prefix <b>%h(zName)</b> is ambiguous and might |
| 1010 | 1012 |
| --- 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 |