Is it necessary to filter the include path before autoloading?
<p>is it necessary to filter the paths of files before autoloading them. </p>

<pre><code>if (strpos ($class, '.') !== false || strpos ($class, '/') !== false
|| strpos ($class, '\\') !== false || strpos ($class, ':') !== false) {
    return 'error: contains bad character'; 
} else {
      if (file_exists ($class.'.php')) {
            require_once $class.'.php';
       }
}
</code></pre>
