pastojs: check invalid -Jc value

git-svn-id: trunk@38481 -
This commit is contained in:
Mattias Gaertner 2018-03-10 13:25:28 +00:00
parent 5e200cad89
commit 7e39a5031d

View File

@ -2525,7 +2525,17 @@ begin
c:=p^;
inc(p);
case c of
'c': FileCache.AllJSIntoMainJS:=p^<>'-';
'c':
begin
if p^='-' then
begin
FileCache.AllJSIntoMainJS:=false;
inc(p);
end else
FileCache.AllJSIntoMainJS:=true;
if p^<>#0 then
ParamFatal('invalid value "'+String(p)+'"');
end;
'e':
begin
Identifier:=NormalizeEncoding(String(p));