Make sure a filename derived from a bookmark title does not contain invalid

characters for a filename.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@461 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-04-25 13:45:05 +00:00 committed by Alexandre Deckner
parent a0fcf3c05e
commit 54cc547050

View File

@ -1193,6 +1193,9 @@ BrowserWindow::_CreateBookmark()
if (leafPos >= 0)
bookmarkName.Remove(0, leafPos + 1);
}
// Make sure the bookmark title does not contain chars that are not
// allowed in file names.
bookmarkName.ReplaceAll('/', '-');
// Check that the bookmark exists nowhere in the bookmark hierarchy,
// though the intended file name must match, we don't search the stored