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