quotes are not magic

This commit is contained in:
John Bintz 2009-08-07 15:50:06 -04:00
parent f3c2fa1e1c
commit 05d9e1bc56
2 changed files with 232 additions and 238 deletions

View File

@ -575,7 +575,7 @@ class ComicPressAddonCore extends ComicPressAddon {
function handle_update_override_partial($info) {
switch ($info['action']) {
case __('Update partial', 'comicpress'):
$this->comicpress->comicpress_options['override_partials'][$info['partial']] = $info['code'];
$this->comicpress->comicpress_options['override_partials'][$info['partial']] = stripslashes($info['code']);
break;
case __('Delete override partial', 'comicpress'):
unset($this->comicpress->comicpress_options['override_partials'][$info['partial']]);

View File

@ -18,12 +18,6 @@ function __comicpress_init() {
$comicpress->init();
$addons = array();
if (get_magic_quotes_gpc()) {
$_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'))) {
$entries = glob($addons_dir . '/*');
if (is_array($entries)) {