Skip to content

Commit

Permalink
smartplaylist: make absolutely sure we don't try to create an XSP wit…
Browse files Browse the repository at this point in the history
…h an invalid filename
  • Loading branch information
Montellese committed Feb 1, 2012
1 parent ba130f6 commit 94ac096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/dialogs/GUIDialogSmartPlaylistEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void CGUIDialogSmartPlaylistEditor::OnOK()
if (CGUIDialogKeyboard::ShowAndGetInput(filename, g_localizeStrings.Get(16013), false))
{
path = URIUtils::AddFileToFolder(g_guiSettings.GetString("system.playlistspath"),m_playlist.GetSaveLocation());
path = URIUtils::AddFileToFolder(path, filename);
path = URIUtils::AddFileToFolder(path, CUtil::MakeLegalFileName(filename));
}
else
return;
Expand Down

0 comments on commit 94ac096

Please sign in to comment.