@@ -267,9 +267,9 @@ function testArrayRemove()
267267 *
268268 * @dataProvider providerTestGotoNowhere
269269 */
270- function testGotoNowhere ($ page , $ whiteList , $ expected )
270+ function testGotoNowhere ($ page , $ whiteList , $ include , $ expected )
271271 {
272- $ this ->assertSame ($ expected , Core::checkPageValidity ($ page , $ whiteList ));
272+ $ this ->assertSame ($ expected , Core::checkPageValidity ($ page , $ whiteList, $ include ));
273273 }
274274
275275 /**
@@ -280,12 +280,18 @@ function testGotoNowhere($page, $whiteList, $expected)
280280 public function providerTestGotoNowhere ()
281281 {
282282 return array (
283- array (null , [], false ),
284- array ('export.php ' , [], true ),
285- array ('export.php ' , $ this ->goto_whitelist , true ),
286- array ('shell.php ' , $ this ->goto_whitelist , false ),
287- array ('index.php?sql.php&test=true ' , $ this ->goto_whitelist , true ),
288- array ('index.php%3Fsql.php%26test%3Dtrue ' , $ this ->goto_whitelist , true ),
283+ array (null , [], false , false ),
284+ array (null , [], true , false ),
285+ array ('export.php ' , [], false , true ),
286+ array ('export.php ' , [], true , true ),
287+ array ('export.php ' , $ this ->goto_whitelist , false , true ),
288+ array ('export.php ' , $ this ->goto_whitelist , true , true ),
289+ array ('shell.php ' , $ this ->goto_whitelist , false , false ),
290+ array ('shell.php ' , $ this ->goto_whitelist , true , false ),
291+ array ('index.php?sql.php&test=true ' , $ this ->goto_whitelist , false , true ),
292+ array ('index.php?sql.php&test=true ' , $ this ->goto_whitelist , true , false ),
293+ array ('index.php%3Fsql.php%26test%3Dtrue ' , $ this ->goto_whitelist , false , true ),
294+ array ('index.php%3Fsql.php%26test%3Dtrue ' , $ this ->goto_whitelist , true , false ),
289295 );
290296 }
291297
0 commit comments