Differences From:
File
src/db.c
part of check-in
[f46fe42d6d]
- Store private ticket fields (ex: the originators email address) as their
SHA1 hash so that malefactors cannot read them. Add the new "concealed"
table to the repository database and store mappings from SHA1 hashes back
to email addresses in that table. Ticket a24ec6005f. Note: run
"rebuild" on repositories after updating to this version of fossil in order
to create the "concealed" table. Need to add the ability to manage the
concealed table from the web interface and the ability to sync concealed
content between trusted repositories.
by
drh on
2008-07-24 02:04:36.
[view]
To:
File
src/db.c
part of check-in
[3c851ca760]
- Clean up handling of concealed email addresses.
This might be related to ticket 4b40f574494.
by
drh on
2008-07-24 14:48:52.
[view]
@@ -908,10 +908,10 @@
sha1sum_finish(&out);
strcpy(zHash, blob_str(&out));
blob_reset(&out);
db_multi_exec(
- "INSERT OR IGNORE INTO concealed VALUES(%Q,%Q)",
- zHash, zContent
+ "INSERT OR IGNORE INTO concealed VALUES(%Q,%#Q)",
+ zHash, n, zContent
);
return zHash;
}