This should fix the bug with copypasting certifcates.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1126 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
beardog_uk 2009-04-10 19:52:07 +00:00
parent fac2a1cb83
commit 2f7fb3690f

View File

@ -254,8 +254,16 @@ std::string cleanUpCertificate(std::string badCertificate)
currBadCertIdx++;
}
cleanCertificate[currCleanCertIdx]='\n';
currCleanCertIdx++;
if(cleanCertificate[currCleanCertIdx-1]!='\n')
{
cleanCertificate[currCleanCertIdx]='\n';
currCleanCertIdx++;
// std::cerr<<"zeeeee"<<std::endl;
}
else
{
// std::cerr<<"zooooo"<<std::endl;
}
/*
Copying the begining part of the certificate end tag. Copying
-----END part of the tag.