File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 8
8
* @filesource installNewDB.php
9
9
* @package TestLink
10
10
* @author Francisco Mancardi
11
- * @copyright 2008,2018 TestLink community
11
+ * @copyright 2008,2019 TestLink community
12
12
* @copyright inspired by Etomite Content Management System
13
13
* 2003, 2004 Alexander Andrew Butter
14
14
*
38
38
}
39
39
40
40
// catch DB input data
41
- foreach ($ _POST as $ key => $ val ) {
42
- $ _SESSION [$ key ] = $ val ;
41
+ $ validKeys = array ("databasetype " ,"databasehost " ,
42
+ "databasename " ,"tableprefix " ,
43
+ "databaseloginname " ,"databaseloginpassword " ,
44
+ "tl_loginname " ,"tl_loginpassword " );
45
+ foreach ($ validKeys as $ key ) {
46
+ $ _SESSION [$ key ] = '' ;
47
+ if ( isset ($ _POST [$ key ]) ) {
48
+ $ _SESSION [$ key ] = $ _POST [$ key ];
49
+ }
43
50
}
44
51
45
52
//assure that no timeout happens for large data
You can’t perform that action at this time.
0 commit comments