From 6a2da6de318c5e5361017c83f7bd4ff91174e22f Mon Sep 17 00:00:00 2001 From: Ortwin Pinke Date: Wed, 18 Aug 2021 14:37:03 +0200 Subject: [PATCH] rm magic quote func --- conlite/includes/functions.lay.php | 2 +- conlite/includes/functions.tpl.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conlite/includes/functions.lay.php b/conlite/includes/functions.lay.php index 69bd193..f40a871 100644 --- a/conlite/includes/functions.lay.php +++ b/conlite/includes/functions.lay.php @@ -63,7 +63,7 @@ function layEditLayout($idlay, $name, $description, $code) { set_magic_quotes_gpc($description); set_magic_quotes_gpc($code); **/ - $code = addslashes($code); + //$code = addslashes($code); if (strlen(trim($name)) == 0) { $name = i18n('-- Unnamed Layout --'); } diff --git a/conlite/includes/functions.tpl.php b/conlite/includes/functions.tpl.php index 05c4f1f..a859610 100644 --- a/conlite/includes/functions.tpl.php +++ b/conlite/includes/functions.tpl.php @@ -59,8 +59,8 @@ function tplEditTemplate($changelayout, $idtpl, $name, $description, $idlay, $c, $author = "" . $auth->auth["uname"] . ""; //******** entry in 'tpl'-table *************** - set_magic_quotes_gpc($name); - set_magic_quotes_gpc($description); + //set_magic_quotes_gpc($name); + //set_magic_quotes_gpc($description); if (!$idtpl) {