mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
prevent macros coming from commands convert, base64decode, decodeuri
This commit is contained in:
parent
308561090f
commit
44f37f92cf
@ -691,7 +691,9 @@ var
|
||||
result:='';
|
||||
for c in UTF8encode(s) do
|
||||
result:=result+intToHex(ord(c));
|
||||
end
|
||||
end;
|
||||
if isFalse(par('macros')) then
|
||||
result:=noMacrosAllowed(result);
|
||||
end; // convert
|
||||
|
||||
procedure encodeuri();
|
||||
@ -1999,7 +2001,11 @@ try
|
||||
if name = 'base64' then
|
||||
result:=string(base64encode(UTF8encode(p)));
|
||||
if name = 'base64decode' then
|
||||
begin
|
||||
result:=utf8ToString(base64decode(ansistring(p)));
|
||||
if isFalse(par('macros')) then
|
||||
result:=noMacrosAllowed(result);
|
||||
end;
|
||||
if name = 'md5' then
|
||||
result:=strMD5(p);
|
||||
if name = 'sha1' then
|
||||
@ -2078,7 +2084,7 @@ try
|
||||
encodeuri();
|
||||
|
||||
if name = 'decodeuri' then
|
||||
result:=decodeURL(ansistring(p));
|
||||
result:=noMacrosAllowed(decodeURL(ansistring(p)));
|
||||
|
||||
if name = 'set cfg' then
|
||||
trueIf(mainfrm.setcfg(p));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user