From 5c9aff9f1f36115f49fc2dcdc17535a4411e0e2d Mon Sep 17 00:00:00 2001 From: Harvie Date: Tue, 21 Dec 2010 19:46:29 +0100 Subject: [PATCH] Removed StripSlashes() on node content and name. Breaks things... Added magic_quotes_gpc prevention. --- wwwroot/nodes.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 2d7dc8c..54cfa79 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -31,6 +31,9 @@ if ($_SESSION['debugging']) { print_r($_SESSION); } +@ini_set('magic_quotes_gpc' , 'off'); +if(get_magic_quotes_gpc()) die("Error: magic_quotes_gpc needs to be disabled! F00K!\n"); + //Smarty from DB $smarty_resource = 'kyberia'; //$smarty_resource = ''; //same as 'file' (fallback) @@ -172,8 +175,10 @@ if (empty($node)) { //$node['node_type']=$types[$node['node_type']]; +/* This should NOT BE HANDLED HERE! This breaks things... $node['node_content']= StripSlashes($node['node_content']); $node['node_name']= StripSlashes($node['node_name']); +*/ //checking permissions function _checkPermissions() -- 2.30.2