diff --git a/functions.php b/functions.php index 7bb3d83..fd3c1e4 100644 --- a/functions.php +++ b/functions.php @@ -19,9 +19,9 @@ function __comicpress_init() { $addons = array(); if (get_magic_quotes_gpc()) { - $_POST = stripslashes_deep($_POST); - $_GET = stripslashes_deep($_GET); - $_REQUEST = stripslashes_deep($_REQUEST); + $_POST = array_map('stripslashes_deep', $_POST); + $_GET = array_map('stripslashes_deep', $_GET); + $_REQUEST = array_map('stripslashes_deep', $_REQUEST); } if (is_dir($addons_dir = (dirname(__FILE__) . '/addons'))) { @@ -98,7 +98,7 @@ function include_partial($partials = '') { if (($result = $comicpress->get_options_partial($partials)) !== false) { list($target, $code) = $result; - ob_start(); eval('?>' . $code . '' . $code . 'get_partial_path($partials);