Thanks Vishal, I will apply this patch ASAP.
On 10/2/06, Vishal Mahajan <[EMAIL PROTECTED]> wrote:
I am compiling with 1.4. I think String.contains() was introduced only in 1.5. Vishal Raul Benito wrote: > Hi Vishal, > Nice to see you again. We need to take a look to your karma. > Regarding this problem are you compiling with 1.3? > > Regards, > > On 10/2/06, Vishal Mahajan <[EMAIL PROTECTED]> wrote: >> I don't seem to have the commit access in svn, and it has been long >> period of inactivity on the list for me. Anyways, attached is a small >> compile error fix in the project main branch. >> >> Vishal >> >> >> >> Index: >> org/apache/xml/security/transforms/implementations/TransformXPath.java >> =================================================================== >> --- >> org/apache/xml/security/transforms/implementations/TransformXPath.java >> (revision 451991) >> +++ >> org/apache/xml/security/transforms/implementations/TransformXPath.java >> (working copy) >> @@ -120,7 +120,7 @@ >> private boolean needsCircunvent(String str) { >> //return true; >> //return false; >> - return str.contains("namespace") || str.contains("name()"); >> + return (str.indexOf("namespace") != -1) || >> (str.indexOf("name()") != -1); >> } >> >> static class XPathNodeFilter implements NodeFilter { >> >> >> > >
-- http://r-bg.com