Fixed issues 368 and 354, access to files with special characters.

This commit is contained in:
Loic d'Anterroches
2010-01-20 22:33:53 +01:00
parent 0b580ba2ec
commit 73641a03d5
10 changed files with 27 additions and 20 deletions

View File

@@ -187,9 +187,11 @@ class IDF_Scm_Mercurial extends IDF_Scm
continue;
}
}
$fullpath = ($folder) ? $folder.'/'.$file : $file;
$efullpath = self::smartEncode($fullpath);
$res[] = (object) array('perm' => $perm, 'type' => $type,
'hash' => $hash, 'fullpath' => ($folder) ? $folder.'/'.$file : $file,
'file' => $file);
'hash' => $hash, 'fullpath' => $fullpath,
'efullpath' => $efullpath, 'file' => $file);
}
return $res;
}