Restore old URI space trimming code to avoid potential regression. bug 110081 r=pchen@netscape.com sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108496 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user