diff options
author | Christian Schneider | 2011-09-05 16:02:30 +0000 |
---|---|---|
committer | Christian Schneider | 2011-09-05 16:02:30 +0000 |
commit | ef285366954231a28bff1428b5f71c4e284dd46d (patch) | |
tree | 063e7a869b99a4c994c4b914e9b0faea2e7234ff | |
parent | 142db4af568cfea910a91d3119c6ab5283da63b6 (diff) | |
download | itools-ef285366954231a28bff1428b5f71c4e284dd46d.tar.gz itools-ef285366954231a28bff1428b5f71c4e284dd46d.tar.bz2 itools-ef285366954231a28bff1428b5f71c4e284dd46d.zip |
Autoloader: Check if file is local (does not contain ':', i.e. no protocol like http:)
-rw-r--r-- | it_auto_prepend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_auto_prepend.php b/it_auto_prepend.php index 35014ea..36946ee 100644 --- a/it_auto_prepend.php +++ b/it_auto_prepend.php @@ -177,7 +177,7 @@ function it_convert($source) function it_classloader($classname) { - if ($file = @fopen("$classname.class", "r", true)) # Check for file in include path, do not use @include to get failures on inheritance + if (!preg_match('/:/', $classname) && ($file = @fopen("$classname.class", "r", true))) # Check if file is local (does not contain ':', i.e. no protocol like http:) for file in include path, do not use @include to get failures on inheritance { include("$classname.class"); fclose($file); |