Commit Graph
31 Commits
Author SHA1 Message Date
Brad ArantandClaude Sonnet 5 2d9505cd33 Fix jet cgi=yes CGI variable loading and related bugs
- __jet.cpp: the cgi keyword check compared against "true" but the
  documented/intended value is "yes", so <jet cgi="yes" ...> never
  actually turned CGI mode on; fixed. Also replaced the hardcoded
  fake multipart boundary ("xxxx") with real extraction from the
  Content-Type header's boundary= parameter.
- Global.h: default-initialize cgiData to NULL (a GET request with
  cgi="yes" never allocates it, so it was previously left
  dangling); Global.cpp now sets the cookie jar's delimiter to ";"
  to match RFC 6265, since it defaulted to CGIFormattedData's
  &-based form-data delimiter.
- Global.cpp: fix addSession()'s missing throw that let it silently
  continue past a duplicate session id.
- Tag.cpp: fix the CGI-variable lookup branch, which failed to
  compile (cgiData is a pointer; needed to dereference it before
  indexing) and added a null check so a CGI request that never
  populated cgiData (bad Content-Type, or the null-safety gap
  above) throws a clear error instead of crashing; implemented the
  previously-empty session-variable lookup branch; left the
  unreachable duplicate environment-variable branch as-is with a
  comment, since fixing its sigil is a user-facing template-syntax
  decision, not a bug fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 21:37:51 -07:00
Brad Arant 3bd9ea124f Continued work on cgi interfaces. 2025-12-09 12:29:39 -08:00
Brad Arant ac0865d2da CGI parsing work in progress. 2025-12-08 16:36:14 -08:00
Brad Arant 050b5f2b87 more formdata work. 2025-03-17 16:46:50 -07:00
Brad Arant f150389672 worked on cgi session stuff. 2025-03-06 14:54:54 -08:00
Brad Arant ce6b163d5d added some logic for session controls. 2025-01-30 15:54:35 -08:00
Brad Arant edebae34b1 allow cookie, header and stream only in cgi mode. 2025-01-15 14:51:15 -08:00
barant 5c27df59da work towards a clean compile on migrating set and get variables from Tag. 2025-01-08 10:27:30 -08:00
barant 2549220914 migrating getvariable and setvarable to Tag. Needs alot of work. 2025-01-06 14:57:48 -08:00
brad Arant f6dda8496c Made $[%name] to retrieve keyword values in a tag. Has bugs. 2025-01-03 10:50:31 -08:00
brad Arant 9a9abab92d fixed scoping for local on for tag. 2024-12-21 20:26:46 -08:00
Brad Arant ca7aabd73f more sever scoping work. 2024-11-26 16:57:03 -08:00
Brad Arant e3d788bc92 error reporting now reports accurately to the line. 2024-11-26 11:17:22 -08:00
brad Arant a9ce087939 urlencoded forms data is now workng as well. 2024-11-24 13:21:44 -08:00
brad Arant c90c7353c7 multipart/formdata now works for cgi variables. Created base for dump tag. 2024-11-24 11:20:30 -08:00
brad Arant c21dea1411 some cgi variable work. 2024-11-23 19:25:14 -08:00
Brad Arant 5a7f7f2d18 fixed up call tag. Should be complete. 2024-11-18 12:44:41 -08:00
Brad Arant 31e309934c Setup base for conversion modifiers to be written. 2024-11-07 16:47:11 -08:00
brad Arant c1e003e552 Almost done with tag tag. 2024-10-27 19:22:40 -07:00
Brad Arant f0b3c0e0f6 Functional variable retrieval including #[local]. 2024-10-17 15:57:35 -07:00
Brad Arant 062a023683 Broken everything trying to get variable stuff situated. 2024-10-17 14:02:02 -07:00
Brad Arant 4972799e7a Fucked up variable handling trying to improve things with a modifier. 2024-10-16 16:58:33 -07:00
Brad Arant 5a97da3d1c Fixed some Expression and Operand memory issues. 2024-09-26 16:58:55 -07:00
Brad Arant 3db9227adc Finished up whilerow. Added hearder tag. 2024-09-26 10:29:33 -07:00
brad Arant 387203f4b3 Work on mysql and sql. 2024-09-24 20:20:29 -07:00
Brad Arant 2e715a4d08 Worked on the mysql variable retrieval foundation. 2024-09-24 16:27:38 -07:00
Brad Arant 933c400922 Variables work. Added trimline support. 2024-09-24 12:13:06 -07:00
Brad Arant 0379974d5e more work on variables. 2024-09-19 14:40:07 -07:00
Brad Arant 7453db9bd9 mysql efforts... 2024-09-18 16:52:08 -07:00
Brad Arant 3d98448ec4 continued development 2024-02-16 20:16:14 -08:00
Brad Arant bb7be37fd6 Making it work but it doesnt 2024-02-16 11:13:10 -08:00