From: Harvie Date: Tue, 21 Dec 2010 18:46:29 +0000 (+0100) Subject: Removed StripSlashes() on node content and name. Breaks things... Added magic_quotes_... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5c9aff9f1f36115f49fc2dcdc17535a4411e0e2d;p=mirrors%2FKyberia-bloodline.git Removed StripSlashes() on node content and name. Breaks things... Added magic_quotes_gpc prevention. --- 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()