Overview
SHA1 Hash: | 3c851ca7600b5cab8f386c28bc450e16948485d6 |
---|---|
Date: | 2008-07-24 14:48:52 |
User: | drh |
Comment: | Clean up handling of concealed email addresses.
This might be related to ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/db.c from [984f70bf72] to [dc73ec459b].
@@ -907,12 +907,12 @@ 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, zContent + "INSERT OR IGNORE INTO concealed VALUES(%Q,%#Q)", + zHash, n, zContent ); return zHash; } /*
Modified src/tkt.c from [a48490bf20] to [4222b4dfef].
@@ -404,14 +404,12 @@ 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 %z\n", - azField[i], fossilize(zValue,nValue)); + if( strncmp(zValue, azValue[i], nValue) || strlen(azValue[i])!=nValue ){ + blob_appendf(&tktchng, "J %s %#F\n", azField[i], nValue, zValue); } } } } if( *(char**)pUuid ){