Changeset 1719
- Timestamp:
- 07/08/06 12:11:49 (2 years ago)
- Files:
-
- alternc/trunk/bureau/class/m_bro.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/class/m_bro.php
r1704 r1719 91 91 $root_alternc = $root ; 92 92 // Passage du root en chemin réel (différent avec un lien) 93 $root=realpath($root) ; $dir=realpath($root."/".$dir); 93 $root=realpath($root) ; 94 $dir=realpath($root."/".$dir); 94 95 95 96 if (substr($dir,0,strlen($root))!=$root) { … … 294 295 */ 295 296 function DeleteFile($file_list,$R) { 296 global $err; 297 global $err, $mem; 298 $root=realpath("/var/alternc/html/".substr($mem->user["login"],0,1)."/".$mem->user["login"]); 297 299 $absolute=$this->convertabsolute($R,0); 298 if (!$absolute ) {300 if (!$absolute && strpos($root,$absolute) === 0 && strlen($absolute) > (strlen($root)+1) ) { 299 301 $err->raise("bro",1); 300 302 return false;
