mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Revert file access check
This commit is contained in:
parent
7af8b302e9
commit
695cdd2d35
1 changed files with 0 additions and 6 deletions
|
@ -4,12 +4,6 @@ require_once '../../includes/config.php';
|
|||
require_once '../../includes/defaults.php';
|
||||
require_once '../../includes/functions.php';
|
||||
|
||||
// prevent direct file access
|
||||
if (basename($_SERVER['PHP_SELF']) === basename(__FILE__)) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit;
|
||||
}
|
||||
|
||||
function qr_encode($str)
|
||||
{
|
||||
return preg_replace('/(?<!\\\)([\":;,])/', '\\\\\1', $str);
|
||||
|
|
Loading…
Reference in a new issue