pppsetup.cgi: Fix site layout when no TYPE is specified

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>
This commit is contained in:
Stefan Schantl
2015-10-18 14:25:50 +02:00
committed by Michael Tremer
parent 4bb2df502d
commit 609b862fe7

View 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();