From 3833bf0cb0351dac9e218938b3f3e0318421170f Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 14 Dec 2009 21:56:18 -0500 Subject: [PATCH] stripslashes: --- actions/comicpress_update-cpm-config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/comicpress_update-cpm-config.php b/actions/comicpress_update-cpm-config.php index 14952ce..25a94c7 100644 --- a/actions/comicpress_update-cpm-config.php +++ b/actions/comicpress_update-cpm-config.php @@ -17,10 +17,10 @@ function cpm_action_update_cpm_config() { $validate_function_name = "cpm_validate_cpm_option_" . str_replace("-", "_", $option_info['id']); $ok = true; if (function_exists($validate_function_name)) { - $ok = call_user_func($validate_function_name, $_POST[$option_info['id']]); + $ok = call_user_func($validate_function_name, stripslashes($_POST[$option_info['id']])); } - if ($ok) { - $target_update_options[$target_key] = $_POST[$option_info['id']]; + if ($ok) { + $target_update_options[$target_key] = stripslashes($_POST[$option_info['id']]); } else { $target_update_options[$target_key] = $option_info['default']; update_option($target_key, $option_info['default']);