소스 검색

* Do not quote twice in maybequoted. Fix issue #40494

Michaël Van Canneyt 1 년 전
부모
커밋
e3d3fe654c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/fpmkunit/src/fpmkunit.pp

+ 3 - 0
packages/fpmkunit/src/fpmkunit.pp

@@ -2428,6 +2428,9 @@ var
   quoted : boolean;
 begin
   quoted:=false;
+  // If first and last are quotes, we assume it is already quoted.
+  if Length(S)>1 and (S[1]='"') and (S[Length(S)]='"') then
+    Exit(S);
   s1:='"';
   for i:=1 to length(s) do
    begin