Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Clean up handling of concealed email addresses. This might be related to ticket [4b40f574494]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
3c851ca7600b5cab8f386c28bc450e16 |
| User & Date: | drh 2008-07-24 14:48:52.000 |
Context
|
2008-07-24
| ||
| 15:02 | Fix a bug in the check-in comment editor. Ticket [4b40f57449]. check-in: 89de100a2d user: drh tags: trunk | |
| 14:48 | Clean up handling of concealed email addresses. This might be related to ticket [4b40f574494]. check-in: 3c851ca760 user: drh tags: trunk | |
| 13:31 | Fix a missing end-transaction in the content_new() procedure. check-in: dc09f09432 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
905 906 907 908 909 910 911 | static char zHash[42]; Blob out; sha1sum_step_text(zContent, n); sha1sum_finish(&out); strcpy(zHash, blob_str(&out)); blob_reset(&out); db_multi_exec( | | | | 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
static char zHash[42];
Blob out;
sha1sum_step_text(zContent, n);
sha1sum_finish(&out);
strcpy(zHash, blob_str(&out));
blob_reset(&out);
db_multi_exec(
"INSERT OR IGNORE INTO concealed VALUES(%Q,%#Q)",
zHash, n, zContent
);
return zHash;
}
/*
** Attempt to look up the input in the CONCEALED table. If found,
** and if the okRdAddr permission is enabled then return the
|
| ︙ | ︙ |
Changes to src/tkt.c.
| ︙ | ︙ | |||
402 403 404 405 406 407 408 |
zValue = Th_Fetch(azField[i], &nValue);
if( zValue ){
while( nValue>0 && isspace(zValue[nValue-1]) ){ nValue--; }
if( strncmp(azField[i], "private_", 8)==0 ){
zValue = db_conceal(zValue, nValue);
nValue = strlen(zValue);
}
| | < | < | 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
zValue = Th_Fetch(azField[i], &nValue);
if( zValue ){
while( nValue>0 && isspace(zValue[nValue-1]) ){ nValue--; }
if( strncmp(azField[i], "private_", 8)==0 ){
zValue = db_conceal(zValue, nValue);
nValue = strlen(zValue);
}
if( strncmp(zValue, azValue[i], nValue) || strlen(azValue[i])!=nValue ){
blob_appendf(&tktchng, "J %s %#F\n", azField[i], nValue, zValue);
}
}
}
}
if( *(char**)pUuid ){
zUuid = db_text(0,
"SELECT tkt_uuid FROM ticket WHERE tkt_uuid GLOB '%s*'", P("name")
|
| ︙ | ︙ |