public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] pppsetup.cgi: Fix site layout when no TYPE is specified
Date: Sun, 18 Oct 2015 18:52:47 +0100	[thread overview]
Message-ID: <1445190767.2626.3.camel@ipfire.org> (raw)
In-Reply-To: <1445171150-4433-1-git-send-email-stefan.schantl@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

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(a)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='*'
> />&nbsp;$Lang::tr{'required field'}</td>
>  </tr>
> -</table>
>  END
>  ;
> -&Header::closebox();
>  }
>  
> +print "</table>";
> +
> +&Header::closebox();
> +
>  print "</form>\n";
>  
>  &Header::closebigbox();

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2015-10-18 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18 12:25 Stefan Schantl
2015-10-18 17:52 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445190767.2626.3.camel@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox