mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-21 02:31:01 +00:00
enhanced full scripting: search all classes when enabled. warning: security should be checked
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1664a14a02
commit
305d939c88
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005 Jul 19 Stefan Urbanek
|
||||
|
||||
* STEnvironment: search class name namespace when no object is found for
|
||||
given name and full scripting is enabled.
|
||||
|
||||
2005 Jan 4 Stefan Urbanek
|
||||
|
||||
* First step of introducing contexts
|
||||
|
|
|
@ -315,6 +315,14 @@ STEnvironment *sharedEnvironment = nil;
|
|||
}
|
||||
}
|
||||
|
||||
/* FIXME: Warning: possible security problem in the future */
|
||||
/* If there is no such object and full scripting is enabled, then
|
||||
class namespace is searched */
|
||||
if(!obj && fullScripting)
|
||||
{
|
||||
obj = NSClassFromString(objName);
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue