mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 15:51:29 -04:00
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:
parent
8078ad3aab
commit
bf3194f035
3 changed files with 40 additions and 6 deletions
|
@ -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 ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue