From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] pppsetup.cgi: Fix site layout when no TYPE is specified Date: Sun, 18 Oct 2015 14:25:50 +0200 Message-ID: <1445171150-4433-1-git-send-email-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7391887211367830192==" List-Id: --===============7391887211367830192== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable There was an issue with false generated HTML code, in case of an empty or unset $pppsettings{'TYPE'} variable which results in a missplaced website footer. This patch moves the code for closeing the table and the call of the closebox() function to the correct place to prevent this display issue. Fixes #10565. Signed-off-by: Stefan Schantl --- html/cgi-bin/pppsetup.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi index b3e8e6c..36d0ced 100644 --- a/html/cgi-bin/pppsetup.cgi +++ b/html/cgi-bin/pppsetup.cgi @@ -980,12 +980,14 @@ print <$Lang::tr{'legend'}: 3D'*'&= nbsp;$Lang::tr{'required field'} - END ; -&Header::closebox(); } =20 +print ""; + +&Header::closebox(); + print "\n"; =20 &Header::closebigbox(); --=20 2.4.3 --===============7391887211367830192==--