* Error on System. references with 'CS20003: 'System' is null or not an object"

0.6.0-stable
Teravus Ovares 2008-04-26 06:56:50 +00:00
parent a4b2dc6050
commit a53cc8fbfa
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
string quote = String.Empty;
bool last_was_escape = false;
int quote_replaced_count = 0;
Match SecurityM = Regex.Match(Script, "[;}][^\"']+System\\.[^\"']", RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
if (SecurityM.Success)
throw new Exception("BC20002: 'System' is null or not an object");
for (int p = 0; p < Script.Length; p++)
{
C = Script.Substring(p, 1);