Sanitized parsing of floats (x, y, z location) for Culture.
parent
c9da66728a
commit
e33209fe5b
|
@ -405,9 +405,9 @@ namespace OpenSim.Services.LLLoginService
|
|||
}
|
||||
else
|
||||
{
|
||||
position = new Vector3(float.Parse(uriMatch.Groups["x"].Value),
|
||||
float.Parse(uriMatch.Groups["y"].Value),
|
||||
float.Parse(uriMatch.Groups["z"].Value));
|
||||
position = new Vector3(float.Parse(uriMatch.Groups["x"].Value, Culture.NumberFormatInfo),
|
||||
float.Parse(uriMatch.Groups["y"].Value, Culture.NumberFormatInfo),
|
||||
float.Parse(uriMatch.Groups["z"].Value, Culture.NumberFormatInfo));
|
||||
|
||||
string regionName = uriMatch.Groups["region"].ToString();
|
||||
if (regionName != null)
|
||||
|
|
Loading…
Reference in New Issue