Changeset 1719 for alternc/trunk/bureau/class/m_bro.php
- Timestamp:
- 07/08/06 12:11:49 (7 years ago)
- File:
-
- 1 edited
-
alternc/trunk/bureau/class/m_bro.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.
