Restore old URI space trimming code to avoid potential regression. bug 110081 r=pchen@netscape.com sr=ben@netscape.com

This commit is contained in:
locka%iol.ie 2001-11-19 21:48:31 +00:00
parent edf0df5f1f
commit a8f890f8dd

View File

@ -4095,7 +4095,7 @@ nsDocShell::CreateFixupURI(const PRUnichar * aStringURI, nsIURI ** aURI)
{
*aURI = nsnull;
nsAutoString uriString(aStringURI);
uriString.CompressWhitespace(); // Cleanup the empty spaces that might be on each end.
uriString.Trim(" "); // Cleanup the empty spaces that might be on each end.
// Eliminate embedded newlines, which single-line text fields now allow:
uriString.StripChars("\r\n");