[Rt-commit] rt branch, 4.0/escape-username-in-login-tests, created. rt-4.0.5-79-ge708776
Thomas Sibley
trs at bestpractical.com
Thu Feb 23 11:21:55 EST 2012
The branch, 4.0/escape-username-in-login-tests has been created
at e7087766f7139a5368710be0d686d45d5e704650 (commit)
- Log -----------------------------------------------------------------
commit e7087766f7139a5368710be0d686d45d5e704650
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Feb 23 11:20:16 2012 -0500
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.
diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index ee87a28..c2d9ac3 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -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;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list