Page 1 of 1

Warning: eregi() [function.eregi]: REG_EESCAPE

Posted: Thu Oct 01, 2009 11:28 pm
by SunInt
Can anyone tell me what this means and how this can be fixed. Is this a permissions issue? Or would it be an issue inside the php file? Any help would be very appreciated.

Below is a piece of code from the php file and line number where the error says it is occuring, maybe this would help:

// Base path is defined as a restriction on going to far up the directory structure
if (realpath($base) == realpath($path)):
$this->parent_dir = $path;
$this->parent_access = false;
else:
$this->parent_dir = realpath($path."/..");
$this->parent_access = true;
endif;

// If there is a base path and we're outside of it, return error and exit
if ($base != "" && !eregi(realpath($base), realpath($path)) && realpath($base) != realpath($path)):
$this->success = false;
return;
endif;