Commit f17962b
dezsi-istvan
pre_controller can modify $class / $method
in codeigniter pre_controller methods modifying global $class $method variables modify the route
code in codeigniter\framework\system\core\CodeIgniter.php
$EXT->call_hook('pre_controller');
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
$CI = new $class();
with this fix, this behavior will work in testing also1 parent 295d0c8 commit f17962b
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
327 | 330 | | |
| 331 | + | |
| 332 | + | |
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| |||
0 commit comments