Permalink
Browse files

HTML escape the username when testing for successful log in

Otherwise RT::Test::Web->login fails when the username contains
characters which are HTML escaped, such as parentheses.
  • Loading branch information...
1 parent 20c0286 commit e7087766f7139a5368710be0d686d45d5e704650 @tsibley tsibley committed Feb 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/RT/Test/Web.pm
View
@@ -104,6 +104,7 @@ sub login {
Test::More::diag("error: page has no Logout");
return 0;
}
+ RT::Interface::Web::EscapeUTF8(\$user);
unless ( $self->content =~ m{<span class="current-user">\Q$user\E</span>}i ) {
Test::More::diag("Page has no user name");
return 0;

0 comments on commit e708776

Please sign in to comment.