Repairing code accidentally remove by subsequent checkin: b=53377, r=mjudge, a=sfraser

git-svn-id: svn://10.0.0.236/trunk@79989 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com 2000-09-27 01:09:49 +00:00
parent 0ff119d973
commit 6fb48462ec
2 changed files with 8 additions and 0 deletions

View File

@ -1822,6 +1822,10 @@ nsEditorShell::SaveDocument(PRBool saveAs, PRBool saveCopy, PRBool *_retval)
// Use page title as suggested name for new document
if (fileName.Length() == 0 && title.Length() > 0)
{
// Strip out quote character
PRUnichar quote = (PRUnichar)'\"';
title.StripChar(quote);
//Replace "bad" filename characteres with "_"
PRUnichar space = (PRUnichar)' ';
PRUnichar dot = (PRUnichar)'.';

View File

@ -1822,6 +1822,10 @@ nsEditorShell::SaveDocument(PRBool saveAs, PRBool saveCopy, PRBool *_retval)
// Use page title as suggested name for new document
if (fileName.Length() == 0 && title.Length() > 0)
{
// Strip out quote character
PRUnichar quote = (PRUnichar)'\"';
title.StripChar(quote);
//Replace "bad" filename characteres with "_"
PRUnichar space = (PRUnichar)' ';
PRUnichar dot = (PRUnichar)'.';