Fixes #708
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}
/* TODO : parse for IPv6 as well */
/* Parse the hostname or IP */
}
/* TODO : parse for IPv6 as well */
/* Parse the hostname or IP */
- ret = sscanf(path + proto_offset, "%[a-zA-Z.1-9%-]%s",
+ ret = sscanf(path + proto_offset, "%[a-zA-Z.0-9%-]%s",
hostname, remain);
if (ret == 2) {
/* Optional port number */
hostname, remain);
if (ret == 2) {
/* Optional port number */