index 1234a6d44cf6090ad67c60779b3c0da574ae019b..621f74bc6b053c1b7b2cd74f67ab9707dc8cde50 100644 (file)
/* Return plugin dir or root directory? */
if ($plugin){
if ($path == ""){
- $nf= preg_replace("!^".$BASE_DIR."/!", "", session::global_get('plugin_dir'));
+ $nf= preg_replace("!^".$BASE_DIR."/!", "", preg_replace('/^\.\.\//', '', session::global_get('plugin_dir')));
} else {
$nf= preg_replace("!^".$BASE_DIR."/!", "", $path);
}
// Not for groups
if ($mode == 0){
+ // Create SMB Password
+ $attrs= generate_smb_nt_hash($password);
if ($shadow != 0){
$attrs['shadowLastChange']= $shadow;
}
-
- // Create SMB Password
- $attrs= generate_smb_nt_hash($password);
}
$attrs['userPassword']= array();