http://www.atutor.ca/atutor/mantis/view.php?id=2659 atutor_1_5_3_1
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Tue, 18 Jul 2006 16:01:10 +0000 (16:01 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Tue, 18 Jul 2006 16:01:10 +0000 (16:01 -0000)
docs/install/include/ustep2.php
docs/install/include/ustep3.php
docs/install/include/ustep5.php

index 2ac21fd..353be40 100644 (file)
@@ -16,13 +16,16 @@ ignore_user_abort(true);
 
 if (!defined('AT_INCLUDE_PATH')) { exit; }
 
-       function update_one_ver($up_file) {
-               global $progress;
-               $update_file = implode('_',$up_file);
-               queryFromFile('db/'.$update_file.'sql');
-               $progress[] = 'Successful update from version '.$up_file[2].' to '.$up_file[4];
-               return $up_file[4];
-       } 
+function update_one_ver($up_file) {
+       global $progress;
+       $update_file = implode('_',$up_file);
+       queryFromFile('db/'.$update_file.'sql');
+       $progress[] = 'Successful update from version '.$up_file[2].' to '.$up_file[4];
+       return $up_file[4];
+}
+
+$_POST['db_login'] = urldecode($_POST['db_login']);
+$_POST['db_password'] = urldecode($_POST['db_password']);
 
        unset($errors);
        //check DB & table connection
index 44c0d4c..7309831 100644 (file)
@@ -13,6 +13,9 @@
 
 if (!defined('AT_INCLUDE_PATH')) { exit; }
 
+$_POST['db_login']    = urldecode($_POST['db_login']);
+$_POST['db_password'] = urldecode($_POST['db_password']);
+
 if(isset($_POST['submit']) && ($_POST['action'] == 'process')) {
        unset($errors);
 
index ee80b3a..a6335c7 100644 (file)
@@ -84,6 +84,9 @@ if (isset($errors)) {
                        $comments = '/*'.str_pad(' This file was generated by the ATutor 1.5.2 installation script.', 70, ' ').'*/
                /*'.str_pad(' File generated '.date('Y-m-d H:m:s'), 70, ' ').'*/';
 
+                       $_POST['db_login'] = urldecode($_POST['db_login']);
+                       $_POST['db_password'] = urldecode($_POST['db_password']);
+
                        write_config_file('../include/config.inc.php', $comments);
                }