Changeset 2278 for sandbox/workflow/branches/609/lib/factory/Factory.php
- Timestamp:
- 03/17/10 11:21:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/lib/factory/Factory.php
r2249 r2278 103 103 self::$_unsecuredFactory = new WorkflowFactory(); 104 104 105 return call_user_func_array(array(self::$_unsecuredFactory, $methodName), $args); 105 $className = array_shift($args); 106 return self::$_unsecuredFactory->$methodName($className, $args); 106 107 } 107 108 /* oops. we are in the process space (restricted). */ … … 112 113 self::$_securedFactory = new ProcessFactory(); 113 114 115 $className = array_shift($args); 116 114 117 /** 115 118 * If the class is not allowed, we must check who is trying … … 118 121 */ 119 122 try { 120 $obj = call_user_func_array(array(self::$_securedFactory, $methodName), $args);123 $obj = &self::$_securedFactory->$methodName($className, $args); 121 124 } 122 125 … … 133 136 */ 134 137 if (Security::isSafeDir(2)) 135 $obj = call_user_func_array(array(self::$_unsecuredFactory, $methodName), $args);138 $obj = &self::$_unsecuredFactory->$methodName($className, $args); 136 139 137 /* na sty one. take this...*/140 /* naaasty one. take this! */ 138 141 else 139 142 throw($e);
Note: See TracChangeset
for help on using the changeset viewer.