pppsetup.cgi: Fix site layout when no TYPE is specified
Message ID | 1445171150-4433-1-git-send-email-stefan.schantl@ipfire.org |
---|---|
State | Accepted |
Commit | 609b862fe7c58c3d61244888c1f7a98cb7da66cb |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id A56FF6201A for <patchwork@ipfire.org>; Sun, 18 Oct 2015 14:25:53 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 473DDD70; Sun, 18 Oct 2015 14:25:53 +0200 (CEST) Received: from tuxedo.stevee (host228-133-28-81.hiway.at [81.28.133.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 1342F162; Sun, 18 Oct 2015 14:25:52 +0200 (CEST) From: Stefan Schantl <stefan.schantl@ipfire.org> 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> X-Mailer: git-send-email 2.4.3 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Stefan Schantl
Oct. 18, 2015, 11:25 p.m. UTC
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 <stefan.schantl@ipfire.org>
---
html/cgi-bin/pppsetup.cgi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
Merged. Please take care of the bug report. -Michael On Sun, 2015-10-18 at 14:25 +0200, Stefan Schantl wrote: > 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 <stefan.schantl@ipfire.org> > --- > 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 <<END > <td colspan='2' width='50%'>$Lang::tr{'legend'}:</td> > <td colspan='2' width='50%'><img src='/blob.gif' alt='*' > /> $Lang::tr{'required field'}</td> > </tr> > -</table> > END > ; > -&Header::closebox(); > } > > +print "</table>"; > + > +&Header::closebox(); > + > print "</form>\n"; > > &Header::closebigbox();