Overview
SHA1 Hash: | 3afcc4388c8a619218d71471e769efee9c1d56a3 |
---|---|
Date: | 2007-11-22 22:02:06 |
User: | drh |
Comment: | Fix the rendering of comments with unclosed block HTML markup in the vinfo page. |
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/info.c from [d4602a7e16] to [0cdd4e2392].
@@ -316,10 +316,11 @@ " WHERE blob.rid=%d" " AND event.objid=%d", rid, rid ); if( db_step(&q)==SQLITE_ROW ){ + Blob comment; const char *zUuid = db_column_text(&q, 0); char *zTitle = mprintf("Version: [%.10s]", zUuid); style_header(zTitle); free(zTitle); /*@ <h2>Version %s(zUuid)</h2>*/ @@ -329,11 +330,14 @@ @ <tr><th>Date:</th><td>%s(db_column_text(&q, 1))</td></tr> if( g.okSetup ){ @ <tr><th>Record ID:</th><td>%d(rid)</td></tr> } @ <tr><th>Original User:</th><td>%s(db_column_text(&q, 2))</td></tr> - @ <tr><th>Original Comment:</th><td>%s(db_column_text(&q, 3))</td></tr> + @ <tr><th>Original Comment:</th><td> + db_ephemeral_blob(&q, 3, &comment); + wiki_convert(&comment, 0, 0); + @ </td></tr> @ <tr><th>Commands:</th> @ <td> @ <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a> @ | <a href="%s(g.zBaseURL)/zip/%s(zUuid).zip">ZIP archive</a> @ | <a href="%s(g.zBaseURL)/fview/%d(rid)">manifest</a>