'../' is no good for us.

This commit is contained in:
Garvin Hicking
2003-03-11 19:24:48 +00:00
parent 667259f19b
commit 127b2a4577
2 changed files with 2 additions and 3 deletions

View File

@@ -206,7 +206,7 @@ if (isset($do) && $do == 'import') {
} else {
// echo '<h1>Starting Import</h1>';
$docpath = $DOCUMENT_ROOT . dirname($PHP_SELF) . '/' . $docpath;
$docpath = $DOCUMENT_ROOT . dirname($PHP_SELF) . '/' . str_replace('../', './', $docpath);
if (substr($docpath, strlen($docpath) - 2, 1) != '/') {
$docpath = $docpath . '/';
}