mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 02:36:52 +00:00
disable magic quotes if needed
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
|
||||||
|
/* remove ill effects of magic quotes */
|
||||||
|
|
||||||
|
if (get_magic_quotes_gpc()) {
|
||||||
|
$_GET = array_map('stripslashes', $_GET);
|
||||||
|
$_POST = array_map('stripslashes', $_POST);
|
||||||
|
$_REQUEST = array_map('stripslashes', $_REQUEST);
|
||||||
|
$_COOKIE = array_map('stripslashes', $_COOKIE);
|
||||||
|
}
|
||||||
|
|
||||||
require_once "sessions.php";
|
require_once "sessions.php";
|
||||||
require_once "modules/backend-rpc.php";
|
require_once "modules/backend-rpc.php";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user