mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 09:29:40 +02:00
simplewebserver: fixed crash if browser path empty
This commit is contained in:
parent
7b1e04c5d8
commit
b737901aa5
@ -2008,8 +2008,11 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
SplitCmdLineParams(Cmd,Params);
|
SplitCmdLineParams(Cmd,Params);
|
||||||
Result:=Params[0];
|
if Params.Count>0 then
|
||||||
Params.Delete(0);
|
begin
|
||||||
|
Result:=Params[0];
|
||||||
|
Params.Delete(0);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
swsbkFirefox: Result:=GetBrowserFirefox(URL,Params);
|
swsbkFirefox: Result:=GetBrowserFirefox(URL,Params);
|
||||||
swsbkChrome: Result:=GetBrowserChrome(URL,Params);
|
swsbkChrome: Result:=GetBrowserChrome(URL,Params);
|
||||||
|
Loading…
Reference in New Issue
Block a user