Project

General

Profile

« Previous | Next » 

Revision 1087

Added by Matthias over 15 years ago

Fixed bug with home folders are viewable and writable from other users (ticket #605 and #748) (Thanks to Aldus)

View differences:

browse.php
77 77
$template->set_block('page', 'main_block', 'main');
78 78

  
79 79
// Get the current dir
80
$directory = $admin->strip_slashes($admin->get_get('dir'));
80
$currentHome = $admin->get_home_folder();
81
$directory =	(($currentHome) AND (!array_key_exists('dir',$_GET)))
82
				? 
83
				$currentHome
84
				:
85
				$admin->strip_slashes($admin->get_get('dir')) ;
81 86
if($directory == '/' OR $directory == '\\') {
82 87
	$directory = '';
83 88
}
......
107 112
// Workout the parent dir link
108 113
$parent_dir_link = ADMIN_URL.'/media/browse.php?dir='.$directory.'&up=1';
109 114
// Workout if the up arrow should be shown
110
if($directory == '') {
115
if(($directory == '') or ($directory==$currentHome)) {
111 116
	$display_up_arrow = 'hide';
112 117
} else {
113 118
	$display_up_arrow = '';

Also available in: Unified diff