From: Daniel Hromada Date: Thu, 9 Dec 2010 01:13:12 +0000 (+0100) Subject: add event partially fixed X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=ff8a58af03e410fa9a4df0186fad70561dd054d6;p=mirrors%2FKyberia-bloodline.git add event partially fixed --- diff --git a/wwwroot/inc/eventz/add.inc b/wwwroot/inc/eventz/add.inc index 83ea201..b18a2ca 100644 --- a/wwwroot/inc/eventz/add.inc +++ b/wwwroot/inc/eventz/add.inc @@ -103,10 +103,6 @@ function add() { $node_content=crypto::crypto($node_content,$key); - //setting generated crypto password for viewing - if ($node_system_access=='crypto') { - $_SESSION['crypto'][$id]=$key; - } } @@ -115,7 +111,7 @@ function add() { $params['node_parent']=$node_parent; $params['node_system_access']=$node_system_access; $params['node_creator']=$_SESSION['user_id']; - $params['node_content']=$node_content; + $params['node_content']=mysql_escape_string($node_content); $params['external_link']=$external_link; nodes::addNode($params); return true;