Browse Source

* Fix bug #34538, AV in case of invalid method (patch by chmod222)

git-svn-id: trunk@40393 -
michael 6 years ago
parent
commit
818624559d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/httproute.pp

+ 1 - 1
packages/fcl-web/src/base/httproute.pp

@@ -422,7 +422,7 @@ Var
 begin
 begin
   Result:=High(TRouteMethod);
   Result:=High(TRouteMethod);
   MN:=Uppercase(S);
   MN:=Uppercase(S);
-  While (Result>=Low(TRouteMethod)) and (RouteMethodNames[Result]<>MN) do
+  While (Result>Low(TRouteMethod)) and (RouteMethodNames[Result]<>MN) do
     Result:=Pred(Result);
     Result:=Pred(Result);
   if Result=rmAll then Result:=rmUnknown;
   if Result=rmAll then Result:=rmUnknown;
 end;
 end;