Bug #23075 ยป 14971_v1.diff

Administrator Admin, 2010-07-02 13:11

View differences:

tests/t3lib/t3lib_divTest.php (working copy)
479 479
	 * @see	sanitizeLocalUrlAcceptsValidUrls
480 480
	 */
481 481
	public function validLocalUrlDataProvider() {
482
		$subDirectory = t3lib_div::getIndpEnv('TYPO3_SITE_PATH');
483
		$typo3SiteUrl = t3lib_div::getIndpEnv('TYPO3_SITE_URL');
484
		$typo3RequestHost = t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST');
485

  
482 486
		return array(
483
			array('alt_intro.php'),
484
			array('alt_intro.php?foo=1&bar=2'),
485
			array('/typo3/alt_intro.php'),
486
			array('/index.php'),
487
			array('../index.php'),
488
			array('../typo3/alt_intro.php'),
489
			array('../~userDirectory/index.php'),
490
			array('../typo3/mod.php?var1=test-case&var2=~user'),
491
			array(PATH_site . 'typo3/alt_intro.php'),
492
			array(t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'typo3/alt_intro.php'),
493
			array(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST') . '/index.php'),
487
			'alt_intro.php' => array('alt_intro.php'),
488
			'alt_intro.php?foo=1&bar=2' => array('alt_intro.php?foo=1&bar=2'),
489
			$subDirectory . 'typo3/alt_intro.php' => array($subDirectory . 'typo3/alt_intro.php'),
490
			$subDirectory . 'index.php' => array($subDirectory . 'index.php'),
491
			'../index.php' => array('../index.php'),
492
			'../typo3/alt_intro.php' => array('../typo3/alt_intro.php'),
493
			'../~userDirectory/index.php' => array('../~userDirectory/index.php'),
494
			'../typo3/mod.php?var1=test-case&var2=~user' => array('../typo3/mod.php?var1=test-case&var2=~user'),
495
			PATH_site . 'typo3/alt_intro.php' => array(PATH_site . 'typo3/alt_intro.php'),
496
			$typo3SiteUrl . 'typo3/alt_intro.php' => array($typo3SiteUrl . 'typo3/alt_intro.php'),
497
			$typo3RequestHost . $subDirectory . '/index.php' => array($typo3RequestHost . $subDirectory . '/index.php'),
494 498
		);
495 499
	}
496 500

  
    (1-1/1)