Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix rendering on the /file page that causes text files to be reported as binary. Caused by check-in [6643d4a0c1aabb85]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
e5d30a7c34db7c2e7268b06b72c1ec99 |
| User & Date: | drh 2021-01-04 15:18:00.644 |
Context
|
2021-01-04
| ||
| 20:10 | Add two new small WAV files, perhaps useful as audiable alert sounds, but not yet used for anything. ... (check-in: 2146a13df1 user: drh tags: trunk) | |
| 15:18 | Fix rendering on the /file page that causes text files to be reported as binary. Caused by check-in [6643d4a0c1aabb85]. ... (check-in: e5d30a7c34 user: drh tags: trunk) | |
| 14:58 | Chat docs: added notes about client-side message deletion and clarified hyperlink parsing a bit. ... (check-in: a6177fd43d user: stephan tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
2507 2508 2509 2510 2511 2512 2513 |
style_submenu_element("Hex", "%R/hexdump?name=%s", zUuid);
if( zLn==0 || atoi(zLn)==0 ){
style_submenu_checkbox("ln", "Line Numbers", 0, 0);
}
blob_to_utf8_no_bom(&content, 0);
if( zMime==0 ) zMime = mimetype_from_content(&content);
@ <blockquote class="file-content">
| | | 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 |
style_submenu_element("Hex", "%R/hexdump?name=%s", zUuid);
if( zLn==0 || atoi(zLn)==0 ){
style_submenu_checkbox("ln", "Line Numbers", 0, 0);
}
blob_to_utf8_no_bom(&content, 0);
if( zMime==0 ) zMime = mimetype_from_content(&content);
@ <blockquote class="file-content">
if( zMime==0 || strncmp(zMime, "text/", 5)==0 ){
const char *z, *zFileName, *zExt;
z = blob_str(&content);
zFileName = db_text(0,
"SELECT name FROM mlink, filename"
" WHERE filename.fnid=mlink.fnid"
" AND mlink.fid=%d",
rid);
|
| ︙ | ︙ |