mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Disable autoload in search for internal class
Test Plan: /diffusion/symbol/Exception/?jump=1&type=class&lang=php /diffusion/symbol/Countable/?jump=1&type=class&lang=php Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2124
This commit is contained in:
parent
e69ba98e20
commit
a234a712cd
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ final class DiffusionSymbolController extends DiffusionController {
|
|||
}
|
||||
break;
|
||||
case 'class':
|
||||
if (class_exists($this->name) ||
|
||||
in_array($this->name, get_declared_interfaces())) {
|
||||
if (class_exists($this->name, false) ||
|
||||
interface_exists($this->name, false)) {
|
||||
if (id(new ReflectionClass($this->name))->isInternal()) {
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setURI('http://www.php.net/class.'.$this->name);
|
||||
|
|
Loading…
Reference in a new issue