Fossil

Check-in [7a3d6d7057]
Login

Check-in [7a3d6d7057]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Finish writing a doc sentence started in the previous checkin.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7a3d6d70577365d41f43df88c87b5f836cad5ecd01f7f76b9968593e4a8327ee
User & Date: stephan 2025-09-01 17:17:15.889
Context
2025-09-02
12:51
Change the link to fnc to use its new canonical home, fnc.sh, as pointed out by Florian in the forum. ... (check-in: accce714cc user: stephan tags: trunk)
2025-09-01
17:17
Finish writing a doc sentence started in the previous checkin. ... (check-in: 7a3d6d7057 user: stephan tags: trunk)
16:58
Add a CSRF check to /chat-send. ... (check-in: 4caa8cb9ff user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
    CX("}");
  }
  fossil_free(zTime);
}

/*
** Like chat_emit_permissions_error() but emits a single
** /chat-message-format JSON object
*/
static void chat_emit_csrf_error(void){
  char * zTime = cgi_iso8601_datestamp();
  cgi_set_content_type("application/json");
  CX("{");
  CX("\"isError\": true, \"xfrom\": null,");
  CX("\"mtime\": %!j, \"lmtime\": %!j,", zTime, zTime);







|







390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
    CX("}");
  }
  fossil_free(zTime);
}

/*
** Like chat_emit_permissions_error() but emits a single
** /chat-message-format JSON object about a CSRF violation.
*/
static void chat_emit_csrf_error(void){
  char * zTime = cgi_iso8601_datestamp();
  cgi_set_content_type("application/json");
  CX("{");
  CX("\"isError\": true, \"xfrom\": null,");
  CX("\"mtime\": %!j, \"lmtime\": %!j,", zTime, zTime);