Fossil SCM
Enable ZIP and Tarball downloads for user "nobody" by default, since the other anti-spider defenses seem to work well enough to prevent abuse.
Commit
68ce0bcf6269988efe0ba4bf97b3c4876d8b0a38
Parent
be5b69862c81561…
1 file changed
+2
-2
M
src/db.c
+2
-2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1439,13 +1439,13 @@ | ||
| 1439 | 1439 | " WHERE login=%Q", zUser |
| 1440 | 1440 | ); |
| 1441 | 1441 | if( !setupUserOnly ){ |
| 1442 | 1442 | db_multi_exec( |
| 1443 | 1443 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1444 | - " VALUES('anonymous',hex(randomblob(8)),'hmncz','Anon');" | |
| 1444 | + " VALUES('anonymous',hex(randomblob(8)),'hmnc','Anon');" | |
| 1445 | 1445 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1446 | - " VALUES('nobody','','gjor','Nobody');" | |
| 1446 | + " VALUES('nobody','','gjorz','Nobody');" | |
| 1447 | 1447 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1448 | 1448 | " VALUES('developer','','dei','Dev');" |
| 1449 | 1449 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1450 | 1450 | " VALUES('reader','','kptw','Reader');" |
| 1451 | 1451 | ); |
| 1452 | 1452 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1439,13 +1439,13 @@ | |
| 1439 | " WHERE login=%Q", zUser |
| 1440 | ); |
| 1441 | if( !setupUserOnly ){ |
| 1442 | db_multi_exec( |
| 1443 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1444 | " VALUES('anonymous',hex(randomblob(8)),'hmncz','Anon');" |
| 1445 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1446 | " VALUES('nobody','','gjor','Nobody');" |
| 1447 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1448 | " VALUES('developer','','dei','Dev');" |
| 1449 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1450 | " VALUES('reader','','kptw','Reader');" |
| 1451 | ); |
| 1452 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1439,13 +1439,13 @@ | |
| 1439 | " WHERE login=%Q", zUser |
| 1440 | ); |
| 1441 | if( !setupUserOnly ){ |
| 1442 | db_multi_exec( |
| 1443 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1444 | " VALUES('anonymous',hex(randomblob(8)),'hmnc','Anon');" |
| 1445 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1446 | " VALUES('nobody','','gjorz','Nobody');" |
| 1447 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1448 | " VALUES('developer','','dei','Dev');" |
| 1449 | "INSERT OR IGNORE INTO user(login,pw,cap,info)" |
| 1450 | " VALUES('reader','','kptw','Reader');" |
| 1451 | ); |
| 1452 |