File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ $tmpDir = $originalDir . '/gh10469_tmp';
10
10
chdir ($ tmpDir );
11
11
ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ':./.. ' );
12
12
ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ':./../ ' );
13
+ ini_set ('open_basedir ' , ini_get ('open_basedir ' ) . ':/a/ ' );
13
14
14
15
chdir ($ originalDir );
15
16
var_dump (ini_get ('open_basedir ' ));
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ PHPAPI ZEND_INI_MH(OnUpdateBaseDir)
103
103
}
104
104
/* Don't allow paths with a parent dir component (..) to be set at runtime */
105
105
char * substr_pos = ptr ;
106
- while (true ) {
106
+ while (* substr_pos ) {
107
107
// Check if we have a .. path component
108
108
if (substr_pos [0 ] == '.'
109
109
&& substr_pos [1 ] == '.'
You can’t perform that action at this time.
0 commit comments