added proper filtering of slash and backshash from directory and file names in RsCollection to avoid files that can be redirected to wrong locations

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5977 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-12-13 21:53:27 +00:00
parent 8078ad3aab
commit bf3194f035
3 changed files with 40 additions and 6 deletions

View file

@ -68,10 +68,11 @@ class RsCollectionFile
qulonglong size ;
QString path ;
QString hash ;
bool filename_has_wrong_characters ;
};
void recursAddElements(QDomDocument&,const DirDetails&,QDomElement&) const ;
void recursCollectDLinfos(const QDomElement&,std::vector<DLinfo>& dlinfos,const QString& current_dir) const ;
void recursCollectDLinfos(const QDomElement&,std::vector<DLinfo>& dlinfos,const QString& current_dir,bool bad_chars_in_parent) const ;
QDomDocument _xml_doc ;
QString _filename ;