Art Cancro [Fri, 26 Nov 2021 05:39:04 +0000 (00:39 -0500)]
Link entry in the editor now works. The example code at https://www.thatsoftwaredude.com/content/8912/create-a-basic-text-editor-in-javascript was a bit naive because it assumes the URL is already known at the moment the user presses the Link button. We open a box for URL entry, but when the user clicks into that box the original selection disappears. So we have to save the selection range in hidden fields so we know where to replace the text.
Art Cancro [Wed, 24 Nov 2021 05:27:13 +0000 (00:27 -0500)]
Save messages as multipart/mixed with the HTML component in base64 encoding. We probably should rethink this because now we're double-base64-encoding inline images.
Art Cancro [Wed, 24 Nov 2021 04:53:00 +0000 (23:53 -0500)]
Revert previous commit because it didn't work. Furthermore, remove the content-length header from the PUT operation because the browser wants to do that on its own.
Art Cancro [Wed, 24 Nov 2021 04:48:36 +0000 (23:48 -0500)]
Permit the Content-Transfer-Encoding: header to be forwarded from an HTTP transaction to a post on a Citadel server. This isn't typical for HTTP but we need it.
Art Cancro [Wed, 24 Nov 2021 00:57:07 +0000 (19:57 -0500)]
Detect whether the save operation succeeded by checking the response status of the XHR transaction. Also made the default Citadel server dev.citadel.org instead of uncensored.citadel.org because I am posting a lot of test messages.
Art Cancro [Sun, 14 Nov 2021 23:34:32 +0000 (18:34 -0500)]
Removed the 'old threaded view save for reference' code from the tree. It's still in the git history if we need it, and JWZ is still a self-righteous asshole.
Art Cancro [Mon, 27 Sep 2021 23:15:06 +0000 (19:15 -0400)]
Added -Wno-format-truncation to the CFLAGS to make it shut up about calls to snprintf(), which are ALREADY BOUNDS CHECKED so it really needs to lighten up, Francis.
Art Cancro [Mon, 6 Sep 2021 14:15:38 +0000 (14:15 +0000)]
When a client of any protocol handler sends a command to initiate SSL/TLS on a connection that is already using encryption, throw a clean error instead of crashing.
Art Cancro [Fri, 3 Sep 2021 03:55:37 +0000 (03:55 +0000)]
CtdlPutSysConfig() don't delete the old copy of the config until after the new one has been written. This eliminates data loss if the server is stopped in between.
Art Cancro [Sat, 14 Aug 2021 15:50:37 +0000 (11:50 -0400)]
Additional work on the alias table. This is taking longer than it ought to because I am using it to prototype a design pattern for WebCit-NG. Also began removing some of the cached session stuff.
Art Cancro [Fri, 13 Aug 2021 00:25:58 +0000 (20:25 -0400)]
Skeleton code for the Global Email Aliases tab. To hell with the existing template engine. We are switching to the design pattern used in WebCit-NG and hopefully I won't have to rewrite this thing again.
Art Cancro [Sun, 1 Aug 2021 18:10:29 +0000 (14:10 -0400)]
CtdlGetSysConfig() and CtdlPutSysConfig() now have the ability to store large configuration items as message texts in the Local System Configuration room by saving their message numbers as items in the regular configuration database. This eliminates the last place where we did 'Delete all other messages in this room which have the same MIME type' and that ability has therefore been removed from the code. There is enough code remaining to read configurations saved the old way, but they are upgraded the first time they are read.
Art Cancro [Sun, 18 Jul 2021 17:43:00 +0000 (13:43 -0400)]
A bit of prep work to bring back the global alias table. This time I want to be able to expand aliases to multiple recipients, so it will be a bit more complex. This commit enhances validate_recipients() to read the recipient list into an array before processing.