]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pppsetup.cgi: Fix site layout when no TYPE is specified
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 18 Oct 2015 12:25:50 +0000 (14:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Oct 2015 17:51:31 +0000 (18:51 +0100)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/pppsetup.cgi

index b3e8e6c00629c3413c664d4096bd7c63b2d9c9c7..36d0ced90db1d2df274ede47fb15dd8f0339ab7d 100644 (file)
@@ -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();