Menu

#5 Error in xpath expression

1.4
open
nobody
5
2007-01-31
2007-01-31
czeczek
No

I've just installed latest sins and encounterd following problem
error in xpath expression /cvs-permissions/user[@name = "czeczek_]" around user[@name = "czeczek_]" at /usr/lib/perl5/site_perl/5.8/XML/Twig.pm line 2806

It looks like there is an error in permission.pm file, line 150. (Method isUserValid)
There is:
return $self->{_twig}->get_xpath('/cvs-permissions/user[@name = "'.$self->{_user}.']"');

and should be:
return $self->{_twig}->get_xpath('/cvs-permissions/user[@name = "'.$self->{_user}.'"]');

There is square bracket on wrong position causing that xpath string is being built wrong way.
there is:']"'); and should be '"]');

Discussion


Log in to post a comment.