Parcourir la source

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

git-svn-id: trunk@40393 -
michael il y a 6 ans
Parent
commit
818624559d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
   Result:=High(TRouteMethod);
   MN:=Uppercase(S);
-  While (Result>=Low(TRouteMethod)) and (RouteMethodNames[Result]<>MN) do
+  While (Result>Low(TRouteMethod)) and (RouteMethodNames[Result]<>MN) do
     Result:=Pred(Result);
   if Result=rmAll then Result:=rmUnknown;
 end;