瀏覽代碼

* Fix bug ID #25262

git-svn-id: trunk@26576 -
michael 11 年之前
父節點
當前提交
9bfe0b5e2a
共有 1 個文件被更改,包括 5 次插入1 次删除
  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;