Browse Source

Patch from Atilla Borka, part of bug #13254
* Fixed a bug for Apache applications that returned with the same action
results after any action with the use of TFPTemplate called

git-svn-id: trunk@12985 -

joost 16 years ago
parent
commit
13d79f4352
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-web/src/fpweb.pp

+ 2 - 0
packages/fcl-web/src/fpweb.pp

@@ -435,6 +435,8 @@ begin
     else
       begin
       Actions.HandleRequest(ARequest,AResponse,B);
+      FTemplate.Template := '';//if apache mod, then need to clear for next call because it is a webmodule global property,
+      FTemplate.FileName := '';//so following calls are OK and the above FTemplate.HasContent is not becoming True
       If Not B then
         Raise EFPWebError.Create(SErrRequestNotHandled);
       end;