Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the /file page so that it shows the text of files that are not identified as special binary types. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
1e008989496a5aac6674c8c7d0f63af1 |
| User & Date: | drh 2021-01-05 15:11:47.772 |
Context
|
2021-01-05
| ||
| 19:05 | Provide for two different chat-alert sounds in the /Admin/Chat configuration menu. ... (check-in: d8e6994350 user: drh tags: trunk) | |
| 15:11 | Fix the /file page so that it shows the text of files that are not identified as special binary types. ... (check-in: 1e00898949 user: drh tags: trunk) | |
| 14:02 | It's 2021 now, not 2020. ... (check-in: d0e81e5941 user: stephan tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 |
@ this.height=this.contentDocument.documentElement.scrollHeight + 75;
@ }
@ );
@ </script>
}else if( renderAsSvg ){
@ <object type="image/svg+xml" data="%R/raw/%s(zUuid)"></object>
}else{
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);
| > | > | | 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 |
@ this.height=this.contentDocument.documentElement.scrollHeight + 75;
@ }
@ );
@ </script>
}else if( renderAsSvg ){
@ <object type="image/svg+xml" data="%R/raw/%s(zUuid)"></object>
}else{
const char *zContentMime;
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);
zContentMime = mimetype_from_content(&content);
if( zMime==0 ) zMime = zContentMime;
@ <blockquote class="file-content">
if( zContentMime==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);
|
| ︙ | ︙ |