Fix OpenSim bombing when a MySQL connection string doesn't contain a password.
Passwordless connection is perfectly legal and makes sense within a container.melanie
parent
f57403909f
commit
5ad8bceb1d
|
@ -1685,6 +1685,8 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
// hide the password in the connection string
|
// hide the password in the connection string
|
||||||
passPosition = connectionString.IndexOf("password", StringComparison.OrdinalIgnoreCase);
|
passPosition = connectionString.IndexOf("password", StringComparison.OrdinalIgnoreCase);
|
||||||
|
if (passPosition == -1)
|
||||||
|
return connectionString;
|
||||||
passPosition = connectionString.IndexOf("=", passPosition);
|
passPosition = connectionString.IndexOf("=", passPosition);
|
||||||
if (passPosition < connectionString.Length)
|
if (passPosition < connectionString.Length)
|
||||||
passPosition += 1;
|
passPosition += 1;
|
||||||
|
|
Loading…
Reference in New Issue