diff --git a/libraries/Error.class.php b/libraries/Error.class.php index e8d04ed0e942..089cdbf667d2 100644 --- a/libraries/Error.class.php +++ b/libraries/Error.class.php @@ -425,17 +425,17 @@ public function isUserError() * prevent path disclosure in error message, * and make users feel safe to submit error reports * - * @param string $dest path to be shorten + * @param string $path path to be shorten * * @return string shortened path */ - public static function relPath($dest) + public static function relPath($path) { - $dest = @realpath($dest); + $dest = @realpath($path); /* Probably affected by open_basedir */ if ($dest === FALSE) { - return $dest; + return $path; } $Ahere = explode(