1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +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:
vrana 2012-04-06 12:12:03 -07:00
parent e69ba98e20
commit a234a712cd

View file

@ -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);