phpBB

Code Changes

File: phpbb/filesystem/filesystem.php

  Unmodified   Added   Modified   Removed
Line 835Line 835
				$current_path = $resolved_path . '/' . $path_part;

// Resolve symlinks

				$current_path = $resolved_path . '/' . $path_part;

// Resolve symlinks

				if (is_link($current_path))

				if (@is_link($current_path))

				{
if (!function_exists('readlink'))
{

				{
if (!function_exists('readlink'))
{

Line 872Line 872

$resolved_path = false;
}


$resolved_path = false;
}

				else if (is_dir($current_path . '/'))

				else if (@is_dir($current_path . '/'))

				{
$resolved[] = $path_part;
$resolved_path = $current_path;
}

				{
$resolved[] = $path_part;
$resolved_path = $current_path;
}

				else if (is_file($current_path))

				else if (@is_file($current_path))

				{
$resolved[] = $path_part;
$resolved_path = $current_path;

				{
$resolved[] = $path_part;
$resolved_path = $current_path;