From f49312b6a61d6fb38495a7eb53c736a99ff75685 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 8 Jan 2008 07:16:18 +0000 Subject: [PATCH] MDL-12869 fixed minor security problem in installer - reported by hanno; merged from MOODLE_19_STABLE --- install.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install.php b/install.php index 8983a827e1..065547afb8 100644 --- a/install.php +++ b/install.php @@ -107,6 +107,7 @@ if (isset($_POST['stage'])) { $nextstage = $_POST['stage']; } + $nextstage = (int)$nextstage; if ($nextstage < 0) { $nextstage = WELCOME; @@ -823,31 +824,31 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {

- +

- +

- +

- +

- + @@ -859,7 +860,7 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {

- + -- 2.39.5