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

@@ -371,5 +371,13 @@ class IDF_Scm
}
}
}
/**
* Given a path, encode everything but the /
*/
public static function smartEncode($path)
{
return str_replace('%2F', '/', rawurlencode($path));
}
}