Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | In the "fossil chat send" command, detect extra arguments and throw an error if they are seen. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
1814f528de4987ed807f885abc3b9f08 |
| User & Date: | drh 2021-01-05 02:05:01.921 |
Context
|
2021-01-05
| ||
| 02:13 | Fix the "fossil chat send" command so that it sends the lmtime query parameter so that the chat display shows an appropriate local time. ... (check-in: 62d67ed9a5 user: drh tags: trunk) | |
| 02:05 | In the "fossil chat send" command, detect extra arguments and throw an error if they are seen. ... (check-in: 1814f528de user: drh tags: trunk) | |
| 01:32 | Do not allow the "fossil chat send" command to transmit over an unencrypted channel unless the --unsafe option is used on the command-line. ... (check-in: 6da3a74d5f user: drh tags: trunk) | |
Changes
Changes to src/chat.c.
| ︙ | ︙ | |||
765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
if( zFilename==0 && zMsg==0 ){
fossil_fatal("must have --message or --file or both");
}
if( !g.url.isHttps && !allowUnsafe ){
fossil_fatal("URL \"%s\" is unencrypted. Use https:// instead", zUrl);
}
verify_all_options();
i = (int)strlen(g.url.path);
while( i>0 && g.url.path[i-1]=='/' ) i--;
g.url.path = mprintf("%.*s/chat-send", i, g.url.path);
blob_init(&up, 0, 0);
blob_init(&down, 0, 0);
sqlite3_randomness(sizeof(r),r);
sqlite3_snprintf(sizeof(zBoundary),zBoundary,
| > > > | 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 |
if( zFilename==0 && zMsg==0 ){
fossil_fatal("must have --message or --file or both");
}
if( !g.url.isHttps && !allowUnsafe ){
fossil_fatal("URL \"%s\" is unencrypted. Use https:// instead", zUrl);
}
verify_all_options();
if( g.argc>3 ){
fossil_fatal("unknown extra argument: \"%s\"", g.argv[3]);
}
i = (int)strlen(g.url.path);
while( i>0 && g.url.path[i-1]=='/' ) i--;
g.url.path = mprintf("%.*s/chat-send", i, g.url.path);
blob_init(&up, 0, 0);
blob_init(&down, 0, 0);
sqlite3_randomness(sizeof(r),r);
sqlite3_snprintf(sizeof(zBoundary),zBoundary,
|
| ︙ | ︙ |