summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_auto_prepend.php2
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);