Allow protocol to be separated from host with a semicolon
Some DHCP servers (such as dnsmasq) tokenise parameters with commas, making it impossible to pass boot files with commas in them. Allow using a semicolon to separate the protocol from host if a comma wasn't found.
This commit is contained in:
parent
75b4826d15
commit
954fd730ca
1 changed files with 4 additions and 0 deletions
|
@ -1292,6 +1292,10 @@ grub_net_open_real (const char *name)
|
||||||
const char *comma;
|
const char *comma;
|
||||||
char *colon;
|
char *colon;
|
||||||
comma = grub_strchr (name, ',');
|
comma = grub_strchr (name, ',');
|
||||||
|
if (!comma)
|
||||||
|
{
|
||||||
|
comma = grub_strchr (name, ';');
|
||||||
|
}
|
||||||
colon = grub_strchr (name, ':');
|
colon = grub_strchr (name, ':');
|
||||||
if (colon)
|
if (colon)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue