From b40fe3b47f261c43fcbbe8ac3d5ab3021ba8abeb Mon Sep 17 00:00:00 2001 From: Ortwin Pinke Date: Wed, 18 Aug 2021 14:07:07 +0200 Subject: [PATCH] addslashes to code --- conlite/includes/functions.lay.php | 1 + 1 file changed, 1 insertion(+) diff --git a/conlite/includes/functions.lay.php b/conlite/includes/functions.lay.php index 8c0a8f6..69bd193 100644 --- a/conlite/includes/functions.lay.php +++ b/conlite/includes/functions.lay.php @@ -63,6 +63,7 @@ function layEditLayout($idlay, $name, $description, $code) { set_magic_quotes_gpc($description); set_magic_quotes_gpc($code); **/ + $code = addslashes($code); if (strlen(trim($name)) == 0) { $name = i18n('-- Unnamed Layout --'); }