aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2016-01-05 23:16:51 +0100
committerMemphiz <memphis@machzwo.de>2016-01-06 15:48:43 +0100
commitf295b9dc9e91c605996cc7676bc0bf798aaf805a (patch)
treebe6942ab575dc7f8b708193da05410bf70f26572
parentefbb55d3cef24da8c73891407121493f1f1962f6 (diff)
[FileBrowser] - fixed credential disclosure when adding network locations
-rw-r--r--xbmc/dialogs/GUIDialogFileBrowser.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/xbmc/dialogs/GUIDialogFileBrowser.cpp b/xbmc/dialogs/GUIDialogFileBrowser.cpp
index 59228e57d5..e92b9a9800 100644
--- a/xbmc/dialogs/GUIDialogFileBrowser.cpp
+++ b/xbmc/dialogs/GUIDialogFileBrowser.cpp
@@ -946,23 +946,25 @@ bool CGUIDialogFileBrowser::OnPopupMenu(int iItem)
if (CGUIDialogNetworkSetup::ShowAndGetNetworkAddress(newPath))
{
g_mediaManager.SetLocationPath(strOldPath,newPath);
+ CURL url(newPath);
for (unsigned int i=0;i<shares.size();++i)
{
if (URIUtils::CompareWithoutSlashAtEnd(shares[i].strPath, strOldPath))//getPath().Equals(strOldPath))
{
- shares[i].strName = newPath;
- shares[i].strPath = newPath;//setPath(newPath);
+ shares[i].strName = url.GetWithoutUserDetails();
+ shares[i].strPath = newPath;
URIUtils::RemoveSlashAtEnd(shares[i].strName);
break;
}
}
- // re-open our dialog
+ // refresh dialog content
SetSources(shares);
m_rootDir.SetMask("/");
m_browsingForFolders = 1;
m_addNetworkShareEnabled = true;
- m_selectedPath = newPath;
- Open();
+ m_selectedPath = url.GetWithoutUserDetails();
+ Update(m_Directory->GetPath());
+ m_viewControl.SetSelectedItem(iItem);
}
}
else