changed: testing file names

now it is allowed to use a slash (we can use directories)
only ".." is not allowed (you cannot go up in a directory structure)


git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@299 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
tomasz.sowa committed 2010-08-02 18:47:19 +00:00
1 parent 573d241dc1
commit 7554630395
2 files changed
+38 -15

No files matched your search

+2 -1
View File
@@ -153,7 +153,8 @@ private:
std::string ReadFile(const std::string & name);
std::string ReadFile(const char * name);
bool CheckFileName(const char * name);
bool HasFileAtBeginning(const char * path, const char * file);
bool IsFileCorrect(const char * name);
bool ReadFileFromDir(const std::string & dir, const char * name, std::string & result);
int ReadCharInText();