fcl-web patch for apache and cgi applications (bug fixes and additions)
- Truncate descriptions
Original Reporter info from Mantis: bobo
-
Reporter name: Attila Borka
Original Reporter info from Mantis: bobo
- Reporter name: Attila Borka
Description:
-
Added: CGI and Apache applications' temporary uploaded files will be deleted after a request is handled /html forms with file upload(s)/ so the files are not left there in the temporary directory.
-
Fixed: Temporary files are not created with a single CRLF in them for html forms where no file(s) were uploaded.
-
Added: Apache applications are now processing and passing the input parameters (QueryFields, ContentFields, uploaded files, etc.). This was only there for CGI applications.
-
THTTPHeader and descendants RemoteAddress property renamed to RemoteAddr for Delphi compatibility
-
Note: For some unknown reason the
ap_get_remote_host(FRequest^.Connection, FRequest^.Per_Dir_Config, REMOTE_HOST, Nil)
call is always crashing, therefore for now this field is not populated. The other used ap_* call is working: ap_get_server_port(FRequest)
This would force a DNS lookup according to the HostnameLookups setting in the Apache configuration.
- Minor changes and corrections in comments here and there
Additional information:
Would it be possible to streamline the menu in Lazarus a little? Once someone installs the fpweb package there are four items appear in the File->New menu:
Simple CGIApplication
CGI Application
Custom CGI Application
Apache Module
Newcomers or even Delphi converts will have hard time to understand which is which. Maybe keep one CGI Application and the Apache Module?
Mantis conversion info:
- Show labels
- Show closed items