[Libreoffice-commits] core.git: 3 commits - android/sdremote l10ntools/source

Thorsten Behrens thb at documentfoundation.org
Mon Feb 11 16:03:30 PST 2013


gerrit wrote:
> index 71909d9..26aabcb 100644
> --- a/l10ntools/source/stringmerge.cxx
> +++ b/l10ntools/source/stringmerge.cxx
> @@ -161,6 +161,7 @@ void StringParser::Merge(
>              {
>                  OString sNewText;
>                  pEntrys->GetText( sNewText, STRING_TYP_TEXT, m_sLang );
> +                sNewText = sNewText.replaceAll("\"",""").replaceAll("\\\\\"","\\\"").replaceAll("\'","'").replaceAll("\\\\\'","\\\'");
>                  xmlNodeSetContent(
>                      pCurrent,
>                      xmlEncodeSpecialChars( NULL,
>
This one is actually broken - xmlNodeSetContent already does the
necessary escaping of entities, in this case " etc gets turned
into ". Updated the Impress Remote regardless (as having
localized UI there is still worthwhile), will look after a proper fix
tomorrow.

Cheers,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130212/c9e864d9/attachment.pgp>


More information about the LibreOffice mailing list