diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-04 17:59:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-04 18:05:17 +0100 |
commit | 6967da019b69767a15116de101d33a16b95c8a44 (patch) | |
tree | 6568d010800d5a2b50ce021d0fc4e187c45f8282 /filter/source/xsltfilter | |
parent | 806f4d8e9a5237ee6c70b1f0433bf12601db1260 (diff) |
filter: make LibXSLTTransformer init backward compatible
As reported by Fernand Vanrie, initializing the XSLT service can fail
because the LibXSLTTransformer::initialize was changed to require
the parameters as a nested Sequence; accept previous parameter
convention as a fall-back.
(regression from ca0ea73a4ab104031a16b5bac7a9bb6e57c77ba0)
Change-Id: I136e6e6338f11ffecf9f856f0736d1d0e6b17c3f
Diffstat (limited to 'filter/source/xsltfilter')
-rw-r--r-- | filter/source/xsltfilter/LibXSLTTransformer.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx index f02c916c4a83..949f383c1f47 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.cxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx @@ -478,7 +478,10 @@ namespace XSLT throw (RuntimeException, std::exception) { Sequence<Any> params; - args[0] >>= params; + if (!(args[0] >>= params)) + { // backward compatibility for old clients using createInstance + params = args; + } xmlSubstituteEntitiesDefault(0); m_parameters.clear(); for (int i = 0; i < params.getLength(); i++) |