FoxInCloud
download file - name problem
Hi vincent,
You're right, in this specific case we should not replace \n
by CRLF
.
Please try this fix:
modify command awTxt.prg
&& Replace:
* -------------------------------------------------------------
PROCEDURE uValueJS_String
LPARAMETERS tcValue && {fr} Chaîne de chaîne en littéral JS
local result as string
result = Alltrim(m.tcValue, '"')
return Strtran(;
Iif(Lenc(m.result) = Lenc(m.tcValue);
, Strtran(Alltrim(m.result, "'"), "\'", "'");
, Strtran(m.result, '\"', '"');
);
, '\n';
, CRLF;
)
endfunc
&& by:
* -------------------------------------------------------------
PROCEDURE uValueJS_String
LPARAMETERS tcValue && {en} JavaScript Literal string {fr} Chaîne littérale JavaScript
local result as string
result = Alltrim(m.tcValue, '"')
result = Iif(Lenc(m.result) = Lenc(m.tcValue);
, Strtran(Alltrim(m.result, "'"), "\'", "'");
, Strtran(m.result, '\"', '"');
)
return Iif(lPath(m.result); && modify command abFile.prg
, m.result;
, Strtran(m.result, '\n', CRLF);
)
endfunc