Home >Backend Development >PHP Tutorial >discuz这段代码怎么理解

discuz这段代码怎么理解

WBOY
WBOYOriginal
2016-06-13 12:10:35912browse

discuz这段代码如何理解
这段代码的作用是为了啥
if (isset($_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS'])) {
exit('Request tainting attempted.');
}
------解决思路----------------------

$x = 123;<br />$a = array('x' => 'abc');<br />extract($a);<br />echo $x;
abc
$a 被改变了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn