× Components and Libraries for Web Development, discussions, problems and suggestions

Important Bug in LWSCGI.pas

  • Rain
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
6 years 6 months ago #5117 by Rain
Bug in LWSCGI.pas was created by Rain
c:\codetyphon\typhon\components\pl_LazWebSolutions\source\LWSCGI.pas

Line 294:
replace this:
//for I := 1 to LWS_CGI_ENV_COUNT do
with this:
for I := 0 to GetEnvironmentVariableCount -1 do

otherwise quite a few Environment variables will be missed, which even can lead to the Error
"ERROR: No REQUEST_METHOD passed from server." ,
if REQUEST_METHOD variable is not read out due to the questionable limit of LWS_CGI_ENV_COUNT = 36;

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 6 months ago #5118 by Sternas Stefanos
Replied by Sternas Stefanos on topic Bug in LWSCGI.pas
Thanks Sir
we add your suggestion to CT lab version

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.