root/honeyclient/tags/bug/POST-42/thirdparty/xpath-23934.patch

Revision 124, 456 bytes (checked in by kindlund, 2 years ago)

Added XML::XPath patch to the thirdparty directory.

  • XPath.pm

    old new  
    192192  if ($#nodes < 0) { 
    193193    if ($node_path =~ m|/@([^/]+)$|) { 
    194194      # attribute not found, so try to create it 
    195       my $parent_path = $`
     195      my $parent_path = substr($node_path, 0, $-[0])
    196196      my $attr = $1; 
    197197      $nodeset = $self->findnodes($parent_path); 
    198198      return undef if (!defined $nodeset); # could not find node 
Note: See TracBrowser for help on using the browser.