Username/password separator: Allow ':' to separate the chap username/password in addition to '%'
This commit is contained in:
@@ -316,10 +316,14 @@ iscsi_parse_full_url(struct iscsi_context *iscsi, const char *url)
|
|||||||
portal = tmp;
|
portal = tmp;
|
||||||
|
|
||||||
tmp = strchr(user, '%');
|
tmp = strchr(user, '%');
|
||||||
|
if (tmp == NULL) {
|
||||||
|
tmp = strchr(user, ':');
|
||||||
|
}
|
||||||
if (tmp != NULL) {
|
if (tmp != NULL) {
|
||||||
*tmp++ = 0;
|
*tmp++ = 0;
|
||||||
passwd = tmp;
|
passwd = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target = strchr(portal, '/');
|
target = strchr(portal, '/');
|
||||||
|
|||||||
Reference in New Issue
Block a user