// Parse user:password pairs separated by semicolons (safer than commas for passwords)
// Also support legacy comma format for backward compatibility
varpairs[]string
ifstrings.Contains(usersStr,";"){
pairs=strings.Split(usersStr,";")
}else{
// Legacy comma format - warn about potential issues
pairs=strings.Split(usersStr,",")
iflen(pairs)>1{
// Only warn if there are actually multiple pairs
for_,pair:=rangepairs{
ifstrings.Count(pair,":")>1{
returnnil,fmt.Errorf("detected multiple colons in user specification '%s'. This may indicate a password containing commas. Please use semicolons (;) to separate user:password pairs instead of commas",pair)
}
}
}
}
// Parse user:password pairs separated by semicolons