Francois Gouget : testbot/cgi: Remove a stray single quote from textarea fields.
Module: tools Branch: master Commit: 462c1cc80db09fbe9d21cf375d048baf83838e7e URL: https://source.winehq.org/git/tools.git/?a=commit;h=462c1cc80db09fbe9d21cf37... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Fri Apr 1 17:09:51 2022 +0200 testbot/cgi: Remove a stray single quote from textarea fields. It would set the default value of textareas to a single quote. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/lib/ObjectModel/CGI/FormPage.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm index 9ce9fa9..dfcd55e 100644 --- a/testbot/lib/ObjectModel/CGI/FormPage.pm +++ b/testbot/lib/ObjectModel/CGI/FormPage.pm @@ -300,10 +300,7 @@ sub GenerateField($$$) print "50' rows='", int(($MaxLength + 49) / 50); } print "'>"; - if (defined $Value) - { - print $self->escapeHTML($Value), "'"; - } + print $self->escapeHTML($Value) if (defined $Value); print "</textarea>"; $self->GenerateRequired($PropertyDescriptor); }
participants (1)
-
Alexandre Julliard