Sanitized parsing of floats (x, y, z location) for Culture.

slimupdates
Diva Canto 2010-04-22 08:47:47 -07:00
parent c9da66728a
commit e33209fe5b
1 changed files with 3 additions and 3 deletions

View File

@ -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)