Francois Gouget : testbot/web: Only refresh the main page for small valid Days values.
Module: tools Branch: master Commit: 9992a28e49aeb1c137d16561c2508ba0a9757e02 URL: https://source.winehq.org/git/tools.git/?a=commit;h=9992a28e49aeb1c137d16561... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Tue Mar 22 13:21:30 2022 +0100 testbot/web: Only refresh the main page for small valid Days values. If Days is invalid every refresh would pop up the error dialog. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/web/index.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testbot/web/index.pl b/testbot/web/index.pl index 605e23b..451258e 100644 --- a/testbot/web/index.pl +++ b/testbot/web/index.pl @@ -284,8 +284,10 @@ sub GeneratePage($) { my ($self) = @_; - $self->{Request}->headers_out->add("Refresh", "60"); - + if (!$self->GetErrMessage() and $self->GetParam("Days") <= $DAYS_DEFAULT) + { + $self->{Request}->headers_out->add("Refresh", "60"); + } $self->SUPER::GeneratePage(); }
participants (1)
-
Alexandre Julliard