diff options
author | Ciro Mattia Gonano <ciromattia@gmail.com> | 2013-09-11 15:56:48 +0200 |
---|---|---|
committer | Ciro Mattia Gonano <ciromattia@gmail.com> | 2013-09-11 15:57:07 +0200 |
commit | 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch) | |
tree | d0c2e4d934cc34ba7d4232f759923b5a257dcb21 /tests/test_tools | |
parent | b833247ce597ec26159b46c8dfbea7f1e265950b (diff) |
Merge up to r3319
Diffstat (limited to 'tests/test_tools')
-rw-r--r-- | tests/test_tools/functional_tests.php | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |