Permalink
Browse files

password manager: don't save/store authenticated url if it doesn't co…

…ntain username
  • Loading branch information...
1 parent 25aff62 commit 564def5a703e4ca4a3a6248775b4b927b1c949b9 @pieh pieh committed with pieh Jul 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/PasswordManager.cpp
View
@@ -85,6 +85,10 @@ bool CPasswordManager::PromptToAuthenticateURL(CURL &url)
void CPasswordManager::SaveAuthenticatedURL(const CURL &url, bool saveToProfile)
{
+ // don't store/save authenticated url if it doesn't contain username
+ if (url.GetUserName().IsEmpty())
+ return;
+
CSingleLock lock(m_critSection);
CStdString path = GetLookupPath(url);

0 comments on commit 564def5

Please sign in to comment.