diff options
| author | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-11-13 21:16:29 +0000 |
|---|---|---|
| committer | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-11-13 21:16:29 +0000 |
| commit | 4e7fe67b30816bfa1f5fdb143182d476687ed7ab (patch) | |
| tree | 7df9da45774b3a4a7dfae15cb1b42995f21eeec5 /packages/fcl-web/src | |
| parent | a15f28dba4aa51b9b0e6b0f0fd6130136360e735 (diff) | |
| download | fpc-4e7fe67b30816bfa1f5fdb143182d476687ed7ab.tar.gz | |
* Make sure that the value of ActionVar is passed as actionname to the OnGetAction event
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16341 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-web/src')
| -rw-r--r-- | packages/fcl-web/src/base/fphttp.pp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/fcl-web/src/base/fphttp.pp b/packages/fcl-web/src/base/fphttp.pp index 314333403d..d6cbdaefdd 100644 --- a/packages/fcl-web/src/base/fphttp.pp +++ b/packages/fcl-web/src/base/fphttp.pp @@ -397,15 +397,16 @@ end; function TCustomWebActions.GetActionName(ARequest: TRequest): String; begin + If (FActionVar<>'') then + Result:=ARequest.QueryFields.Values[FActionVar] + else + Result := ''; If Assigned(FOnGetAction) then FOnGetAction(Self,ARequest,Result); + // GetNextPathInfo is only used after OnGetAction, so that the call to + // GetNextPathInfo can be avoided in the event. If (Result='') then - begin - If (FActionVar<>'') then - Result:=ARequest.QueryFields.Values[FActionVar]; - If (Result='') then - Result:=ARequest.GetNextPathInfo; - end; + Result:=ARequest.GetNextPathInfo; end; constructor TCustomWebActions.Create(AItemClass: TCollectionItemClass); |
