[PATCH] testbot/web: Use our escapeHTML() instead of calling directly the CGI one.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] testbot/web: Use our escapeHTML() instead of calling directly the CGI one.

Francois Gouget
Signed-off-by: Francois Gouget <[hidden email]>
---
 testbot/web/Login.pl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/testbot/web/Login.pl b/testbot/web/Login.pl
index 99757c54..f17d60ed 100644
--- a/testbot/web/Login.pl
+++ b/testbot/web/Login.pl
@@ -21,7 +21,6 @@ use strict;
 
 package LoginPage;
 
-use CGI qw(:standard escapeHTML);
 use ObjectModel::BasicPropertyDescriptor;
 use ObjectModel::CGI::FreeFormPage;
 use WineTestBot::Config;
@@ -79,7 +78,7 @@ sub GenerateFields($)
   if (defined($self->GetParam("Target")))
   {
     print "<div><input type='hidden' name='Target' value='",
-          escapeHTML($self->GetParam("Target")), "'></div>\n";
+          $self->escapeHTML($self->GetParam("Target")), "'></div>\n";
   }
 
   $self->SUPER::GenerateFields();
--
2.15.0