From f3c2fa1e1c4f0f98d28ffecde632b3929c9e4510 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 7 Aug 2009 14:41:43 -0400 Subject: [PATCH] small fixes so big things work --- functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);