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;
|
||||
|
||||
tmp = strchr(user, '%');
|
||||
if (tmp == NULL) {
|
||||
tmp = strchr(user, ':');
|
||||
}
|
||||
if (tmp != NULL) {
|
||||
*tmp++ = 0;
|
||||
passwd = tmp;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
target = strchr(portal, '/');
|
||||
|
||||
Reference in New Issue
Block a user