(In reply to comment #13)
> r=sdwilsh for what it's worth
>
> >+ rv = fixURI->BindUTF8StringParameter(0, *urisToUnescape[i]);
> >+ NS_ENSURE_SUCCESS(rv, rv);
> >+
> >+ (void)textToSubURI->UnEscapeURIForUI(charset, *urisToUnescape[i], uriSpec);
> >+
> >+ rv = fixURI->BindStringParameter(1, uriSpec);
> >+ NS_ENSURE_SUCCESS(rv, rv);
> >+
> >+ rv = fixURI->Execute();
> >+ NS_ENSURE_SUCCESS(rv, rv);
> I think it'd probably be best here to do
> if (NS_FAILED(rv)) continue;
Switched both loops to use NS_SUCCEEDED then append string or NS_SUCCEEDED for both binding and then execute.
Additionally, changed the BindStatementURI to if (NS_FAILED() || empty) use UTF8.
Created an attachment (id=305418)
v1.2
(In reply to comment #13) >BindUTF8String Parameter( 0, *urisToUnescape [i]); SUCCESS( rv, rv); URI->UnEscapeUR IForUI( charset, *urisToUnescape[i], uriSpec); >BindStringPara meter(1, uriSpec); SUCCESS( rv, rv); SUCCESS( rv, rv);
> r=sdwilsh for what it's worth
>
> >+ rv = fixURI-
> >+ NS_ENSURE_
> >+
> >+ (void)textToSub
> >+
> >+ rv = fixURI-
> >+ NS_ENSURE_
> >+
> >+ rv = fixURI->Execute();
> >+ NS_ENSURE_
> I think it'd probably be best here to do
> if (NS_FAILED(rv)) continue;
Switched both loops to use NS_SUCCEEDED then append string or NS_SUCCEEDED for both binding and then execute.
Additionally, changed the BindStatementURI to if (NS_FAILED() || empty) use UTF8.