mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:49:13 +02:00
* Do not quote twice in maybequoted. Fix issue #40494
This commit is contained in:
parent
2cec31d86f
commit
e3d3fe654c
@ -2428,6 +2428,9 @@ var
|
|||||||
quoted : boolean;
|
quoted : boolean;
|
||||||
begin
|
begin
|
||||||
quoted:=false;
|
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:='"';
|
s1:='"';
|
||||||
for i:=1 to length(s) do
|
for i:=1 to length(s) do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user