Commit 3887648865f63b3f4b5cb2c15e7a8cebcfb97817
1 parent
109bc75e
Exists in
master
Inclusão de rotina para verificar se safe.php é um include
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
ferramentas/safe.php
1 | <?php | 1 | <?php |
2 | +if (basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])){ | ||
3 | + exit; | ||
4 | +} | ||
2 | include_once (dirname(__FILE__)."/../classesphp/sani_request.php"); | 5 | include_once (dirname(__FILE__)."/../classesphp/sani_request.php"); |
3 | 6 | ||
4 | $_GET = array_merge($_GET,$_POST); | 7 | $_GET = array_merge($_GET,$_POST); |