Code cleanup

pull/28/head
Tatsuhiro Tsujikawa 2012-09-26 23:03:25 +09:00
parent a20e279606
commit 10a68061f7
1 changed files with 1 additions and 2 deletions

View File

@ -1369,8 +1369,7 @@ std::string applyDir(const std::string& dir, const std::string& relPath)
std::string fixTaintedBasename(const std::string& src)
{
static std::string SLASH_REP = "%2F";
return escapePath(replace(src, "/", SLASH_REP));
return escapePath(replace(src, "/", "%2F"));
}
void generateRandomKey(unsigned char* key)