Changeset 1724

Show
Ignore:
Timestamp:
07/22/06 05:13:41 (2 years ago)
Author:
azerttyu
Message:

modification de dir_local afin de prendre en compte des suffixe du genre /../../chemin
see #738.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/functions.php

    r1723 r1724  
    385385 */ 
    386386 function dir_local($file) { 
    387     //recherche la chaine commençant aprés ../ ou / 
    388     preg_match('`^(/|../)(.*)`',$file,$res); 
     387    //recherche la chaine commençant aprés ../ ou /  ceci n fois 
     388    preg_match('`^(/|../)*(.*)`',$file,$res); 
    389389    echo $file."<br/>";  
    390390    print_r($res);