From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- tests/test_tools/functional_tests.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_tools') diff --git a/tests/test_tools/functional_tests.php b/tests/test_tools/functional_tests.php index 73bd6226..151f77db 100644 --- a/tests/test_tools/functional_tests.php +++ b/tests/test_tools/functional_tests.php @@ -4,8 +4,11 @@ $TEST_TOOLS = dirname(__FILE__); if(isset($_GET['sr'])) { - - if(($selenium_resource=realpath($TEST_TOOLS.'/selenium/'.$_GET['sr']))!==false) + $selenium_base=$TEST_TOOLS.'/selenium/'; + $selenium_resource=realpath($selenium_base.$_GET['sr']); + + if($selenium_resource!==false && + strpos($selenium_resource, $selenium_base) === 0) echo file_get_contents($selenium_resource); exit; } -- cgit v1.2.3