', 'mark=forums&x=%22%3E%3Cscript%3Ealert(/XSS/);%3C/script%3E'), array('http://localhost/phpBB/index.php', 'mark=forums&x=%22%3E%3Cscript%3Ealert(/XSS/);%3C/script%3E', 'mark=forums&x=%22%3E%3Cscript%3Ealert(/XSS/);%3C/script%3E'), ); } /** * @dataProvider security_variables */ public function test_query_string_php_self($url, $query_string, $expected) { $_SERVER['PHP_SELF'] = $url; $_SERVER['QUERY_STRING'] = $query_string; $result = session::extract_current_page('./'); $label = 'Running extract_current_page on ' . $query_string . ' with PHP_SELF filled.'; $this->assertEquals($expected, $result['query_string'], $label); } /** * @dataProvider security_variables */ public function test_query_string_request_uri($url, $query_string, $expected) { $_SERVER['REQUEST_URI'] = $url . '?' . $query_string; $_SERVER['QUERY_STRING'] = $query_string; $result = session::extract_current_page('./'); $label = 'Running extract_current_page on ' . $query_string . ' with REQUEST_URI filled.'; $this->assertEquals($expected, $result['query_string'], $label); } } ue='distro/mga5'>distro/mga5 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-08 18:22:51 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-08 18:22:51 +0000
commit1a2b7368e1192f501fa5a10f989df26d7575a559 (patch)
treed893d96857411434db8d686cc6fd5f31d31cb056 /Makefile
parent670c3db8eca8ca16a78254372c893ce1d8ba8269 (diff)
downloaddrakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar
drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.gz
drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.bz2
drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.xz
drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.zip
(SEGV handler) simplify checking whether interactive was set up or not