Wapp

File History
Login

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

History of wapp.tcl

2019-03-06
20:47
Use the -command argument to regexp to provide wapp-subst and wapp-trim that are fast and that avoid doing command substitution outside of quoted regions. file: [ad079c2717] check-in: [df36e56f70] user: drh branch: trunk, size: 29090
19:32
Alternative implementation of wapp-subst that does not allow command substitution within unquoted sections. file: [8df152630f] check-in: [627a5a8bbc] user: drh branch: new-subst-algorithm, size: 28567
2019-03-04
19:18
Fix the multipart/form-data parser so that it can accept none-file uploads. Add the "fileupload.tcl" example. file: [ae1503e99b] check-in: [cfa2467c17] user: drh branch: trunk, size: 28304
2019-02-16
00:26
Add the -nowait option to the wapp-start proc. file: [e62a045733] check-in: [102ae00863] user: drh branch: trunk, size: 28180
2018-08-06
11:48
Avoid an extra \n at the end of the content in an CGI reply. Fix suggested by Gerome Fournier file: [e6e7d32603] check-in: [f914bf8729] user: drh branch: trunk, size: 27949
2018-05-31
19:57
Fix a comment typo. file: [d9052ea4e3] check-in: [6fdf62dd60] user: drh branch: trunk, size: 27938
2018-05-01
21:03
Add a "package require Tcl 8.6", suggested by AKU. file: [6ac881d9ed] check-in: [9ca390e69f] user: drh branch: trunk, size: 27937
2018-03-09
17:49
Improve %string() to escape < so that </script> does not cause problems in embedded javascript. Improve %html() to escape " and \ to avoid problems with HTML used inside a javascript string. file: [4737e5460e] check-in: [1e5ec777a7] user: drh branch: trunk, size: 27913
2018-02-19
12:32
Attempt to reimplement wapp-subst and wapp-trim using the -command option to regsub. This prevents bracket-command evaluatation in unsubstituted script, but it does not handle backslash escapes quite right. file: [c2b62dcb20] check-in: [9352328572] user: drh branch: regsub-command, size: 28506
2018-02-18
23:45
Allow "%html%(...)%" as an alternative to "%html(...)" for use in cases where the "..." contains one or more ")" characters. file: [d173621dc5] check-in: [a3a740ad51] user: drh branch: trunk, size: 27720
2018-02-16
19:24
In "local" and "server" modes, if a TCL error occurs in the page processing routine, write that error onto standard output in addition to sending it back as the reply to request. file: [0bba28e894] check-in: [99b13e374c] user: drh branch: trunk, size: 27357
2018-02-07
20:00
Improvements to the same-origin detection logic. file: [b60a06f941] check-in: [8b769e4771] user: drh branch: trunk, size: 27239
2018-02-06
17:58
Fix filename dequoting in multipart/form-data interpretation. Add two test files for multipart/form-data testing. file: [01a5c831b3] check-in: [6cd6484c92] user: drh branch: trunk, size: 27179
16:54
Adjust the regexp commands used to parse multipart/form-data to improved performance with very large upload files. file: [b58638ad37] check-in: [4cc53a980a] user: drh branch: trunk, size: 27129
15:47
Add support for decoding multipart/form-data on POST queries. file: [8cf113f8a6] check-in: [70438dc56d] user: drh branch: trunk, size: 27067
13:14
Add the WAPP_MODE cgi parameter. file: [fd019256f4] check-in: [7700f1866a] user: drh branch: trunk, size: 26555
12:46
Add the "--local PORT" option to wapp-start. file: [b74aed45ef] check-in: [a931abfc06] user: drh branch: trunk, size: 26183
12:37
Move the implementation of wapp-start to the end of the file, where it seems to fit in better. No changes to logic. file: [63a2197e7a] check-in: [bacdb61533] user: drh branch: trunk, size: 26008
2018-02-05
01:31
Fix automatic CGI detection so that it works with CGI 1.1. file: [9c8c28451b] check-in: [95e6f7d2d2] user: drh branch: trunk, size: 26008
00:45
Make sure the SCRIPT_FILENAME is a full pathname for the standalone server. file: [c226cd786a] check-in: [20f4274937] user: drh branch: trunk, size: 25996
2018-02-04
23:38
Add the (pwd)= output line to wapp-debug-env. file: [2ffee8b0e2] check-in: [4c985fa7e4] user: drh branch: trunk, size: 25965
19:49
Make CGI parameters DOCUMENT_ROOT and SCRIPT_FILENAME available to the application. file: [deca059d5a] check-in: [bccd3dd07f] user: drh branch: trunk, size: 25925
2018-02-02
16:03
Remove deprecated interfaces. Improved comments in the wapp.tcl source code. file: [5986fe3a11] check-in: [d45c7180be] user: drh branch: trunk, size: 25779
01:02
Faster dispatch using "info procs" rather than "info commands". file: [b7a35bf3c4] check-in: [3a5f24fc30] user: drh branch: trunk, size: 25936
2018-02-01
22:07
Move test files into the tests/ folder. Add the encode-binary-file.tcl utility script. Add an image to tests/test01.tcl. Move the "-translation binary" out of wappInt-handle-request and into wappInt-handle-cgi-request. file: [1e43e93987] check-in: [7c173f40cb] user: drh branch: trunk, size: 25961
21:19
Always set "-translation binary" on an http reply. Add an icon to the shoplist.tcl example application. file: [7159053079] check-in: [098049fe94] user: drh branch: trunk, size: 25960
03:11
Safety enhancements: (A) Invoke the application with the --lint option to do a self-check for unsafe constructs. (B) Bring back the wapp-unsafe command for the rare cases where it is actually needed. (C) Comment out wapp.tcl comment lines when building the wapptclsh application. file: [489eb6684f] check-in: [15fbf713e6] user: drh branch: trunk, size: 25966
2018-01-31
01:09
Get automatic compression working for CGI. file: [2c530de5f7] check-in: [9aa39ada4d] user: drh branch: trunk, size: 25147
00:19
Add a restrictive default Content Security Policy and provide the wapp-content-security-policy command to change it if necessary. file: [cacd775ed0] check-in: [4022bf292d] user: drh branch: trunk, size: 25116
2018-01-30
23:46
Add wapp-allow-xorigin-params and SAME_ORIGIN. Update the documentation accordingly. file: [ef22f3f3a6] check-in: [e82121be4d] user: drh branch: trunk, size: 24543
19:09
Use 307 instead of 302 to redirect. file: [b651e0470d] check-in: [d8cc844e83] user: drh branch: trunk, size: 23078
19:07
Add routines wapp-set-param, wapp-param-exists, and wapp-param-list which together eliminate the need to access the global ::wapp dict. file: [9514a10391] check-in: [f9a0146ed6] user: drh branch: trunk, size: 23075
17:28
Support the -Dvariable=value option to set global TCL variables. file: [e19d86f2dd] check-in: [6fa89b7c98] user: drh branch: trunk, size: 22617
17:06
Change wapp-debug-puts-env to just wapp-debug-env. file: [3e70183bdd] check-in: [bf65f413cf] user: drh branch: trunk, size: 22502
16:09
Pass the HTTPS CGI parameter through to the application code. file: [fd66b108b9] check-in: [622563732a] user: drh branch: trunk, size: 22581
13:18
Automatically do gzip content-encoding on text/* replies if the TCL interpreter supports the zlib command. file: [bd160383d6] check-in: [51541ac197] user: drh branch: trunk, size: 22571
2018-01-29
23:42
Comment changes. Code is unaltered. file: [1a4865fb9d] check-in: [142baa4cbd] user: drh branch: trunk, size: 22288
21:55
Add wapp-cache-control. file: [5bf34392a2] check-in: [815db10773] user: drh branch: trunk, size: 22053
20:54
Add the --trace option useful for debugging. file: [7a5c1ade38] check-in: [7e098c4180] user: drh branch: trunk, size: 21778
18:08
Add the wapp-debug-puts-env command for debugging. file: [dfbfc3ffd4] check-in: [95eb5f5c75] user: drh branch: trunk, size: 21395
2018-01-28
20:04
Add the wapp-trim command. file: [2a735de736] check-in: [ba9c27b26a] user: drh branch: trunk, size: 20987
19:46
Add a Makefile for MacOS. Add wapp-param. Add the %string(...) substitution for wapp-subst. file: [d26165bf08] check-in: [1b25f9e6ed] user: drh branch: trunk, size: 20643
17:45
When the value of a cookie is an empty string, set its max age to 1 second so that it will be cleared from the browser. file: [1df660a350] check-in: [b76fa41ae9] user: drh branch: trunk, size: 20221
17:32
Add the wapp-redirect command. file: [d6d909bf19] check-in: [e6c6f398a0] user: drh branch: trunk, size: 20095
2018-01-27
16:09
Add the optional wapp-before-dispatch-hook and the test05.tcl test case to demonstrate how to use it. file: [f6cb6fafb0] check-in: [e605df67a3] user: drh branch: trunk, size: 19598
2018-01-08
23:19
Do not throw errors when the HTTP client closes the connections without sending a request. file: [f11a236c18] check-in: [0c4fbdfef0] user: drh branch: trunk, size: 19346
23:02
Do not try to translate binary HTTP replies into UTF-8 as is done for text replies. file: [0e8b2953d4] check-in: [c2a8732d7f] user: drh branch: trunk, size: 19313
2017-12-16
17:57
Improved wappInt-enc-url that works with unicode. Added %qp and %unsafe subtitutions in wapp-subst. Updated the documentation accordingly. file: [de1bd6351e] check-in: [908c2891cf] user: drh branch: trunk, size: 19134
03:10
Add the wapp-subst command, with documentation and tests. file: [b8864d3956] check-in: [b304d05bf0] user: drh branch: trunk, size: 19454
2017-12-13
15:25
Add a "package provide" to the main script. Further documentation updates. file: [07ae6006af] check-in: [97b3ea1716] user: drh branch: trunk, size: 18517
15:09
SCGI processing now working on Nginx. file: [e8ffa692ce] check-in: [788f9d0118] user: drh branch: trunk, size: 18467
13:00
Refactor the command-line argument. Update documentation accordingly. file: [8c338710d6] check-in: [69cae4edc3] user: drh branch: trunk, size: 16121
12:32
Add the CGI test script and fix auto-detection of CGI. file: [649e2a8030] check-in: [820bdf0f00] user: drh branch: trunk, size: 15809
12:30
CGI mode is now working. file: [1eb8dcf157] check-in: [d637e1ba1d] user: drh branch: trunk, size: 15796
12:10
Refactor for CGI support. The CGI support is still untested. file: [fea55d875d] check-in: [9697edc9ed] user: drh branch: trunk, size: 15662
2017-12-12
23:07
Improvements to option parsing in wapp-start. file: [b5d2a64e04] check-in: [a7df1f0237] user: drh branch: trunk, size: 13526
22:54
Get the "--mode server" and --port options working. file: [b9f6b1e225] check-in: [f895ab0afe] user: drh branch: trunk, size: 13283
21:47
Documentation improvements. Better CGI variables. Defense against CSRF attacks. file: [adf94107de] check-in: [25694074dc] user: drh branch: trunk, size: 13122
21:21
Improved detection of HTML injections. Show application errors as a 500 return and include errorInfo in the reply text. file: [37a455acdf] check-in: [08c08d74fe] user: drh branch: trunk, size: 12675
19:54
Get it working on Windows. file: [ed007deb98] check-in: [d7595a18c5] user: drh branch: trunk, size: 12359
18:34
Add support for setting cookies. file: [2613495581] check-in: [f79255b218] user: drh branch: trunk, size: 12359
17:11
Improvements to wapp-safety-check. file: [155f54dc68] check-in: [618c0da329] user: drh branch: trunk, size: 9756
16:40
Decode POST data in the application/x-www-form-urlencoded format. file: [0375d6bb34] check-in: [4d37658588] user: drh branch: trunk, size: 9281
16:15
Parse query parameter. file: [d6752a9691] check-in: [b60ef9d35e] user: drh branch: trunk, size: 8838
15:29
Basic functionality. file: [09316e4e83] check-in: [36246a7230] user: drh branch: trunk, size: 7689
12:05
Initial design sketch for Wapp file: [5d12d29763] check-in: [08d1ee28d9] user: drh branch: trunk, size: 4322 Added