mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Sanitized parsing of floats (x, y, z location) for Culture.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user