Ver Fonte

* Fix bug ID #25262

git-svn-id: trunk@26576 -
michael há 11 anos atrás
pai
commit
9bfe0b5e2a
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      packages/fcl-web/src/base/custcgi.pp

+ 5 - 1
packages/fcl-web/src/base/custcgi.pp

@@ -309,7 +309,11 @@ begin
       OV:=GetFieldByName(N);
       OV:=GetFieldByName(N);
       V:=GetEnvironmentVariable(CGIVarNames[I]);
       V:=GetEnvironmentVariable(CGIVarNames[I]);
       If (OV='') or (V<>'') then
       If (OV='') or (V<>'') then
-        SetFieldByName(N,HTTPDecode(V));
+        begin
+        if (N<>'QUERY_STRING') then
+          V:=HTTPDecode(V);
+        SetFieldByName(N,V);
+        end;
       end;
       end;
     end;
     end;
 end;
 end;