fix bug 82622 . check in for nhotta@netscape.com. Add # to the escape list. r=cmanske sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@95909 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -190,8 +190,8 @@ nsHTMLContentSerializer::EscapeURI(const nsAReadableString& aURI, nsAWritableStr
|
||||
nsXPIDLCString escapedURI;
|
||||
aEscapedURI.Truncate(0);
|
||||
|
||||
// Loop and escape parts by avoiding escaping reserved characters (and '%').
|
||||
while ((end = uri.FindCharInSet("%;/?:@&=+$,", start)) != -1) {
|
||||
// Loop and escape parts by avoiding escaping reserved characters (and '%', '#' ).
|
||||
while ((end = uri.FindCharInSet("%#;/?:@&=+$,", start)) != -1) {
|
||||
aURI.Mid(part, start, (end-start));
|
||||
if (textToSubURI && !part.IsASCII()) {
|
||||
rv = textToSubURI->ConvertAndEscape(documentCharset, part.GetUnicode(), getter_Copies(escapedURI));
|
||||
|
||||
Reference in New Issue
Block a user