X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fconfigure_content.inc;h=27a43d98beab4a1bef4b9917aa9b53ed74bc3eba;hb=b5bf04a3b95468d37a95df63e2c7823f03b0b39b;hp=5d31e74c66f2667b7fc77c4f404ec3d467065008;hpb=6b8c2d442b1bcbf6364949e8ce693ce0f15753ab;p=mirrors%2FKyberia-bloodline.git
diff --git a/wwwroot/inc/eventz/configure_content.inc b/wwwroot/inc/eventz/configure_content.inc
index 5d31e74..27a43d9 100644
--- a/wwwroot/inc/eventz/configure_content.inc
+++ b/wwwroot/inc/eventz/configure_content.inc
@@ -14,7 +14,7 @@ function configure_content() {
$params['node_creator'] = UBIK_ID;
$params['node_parent'] = WARNING_ZONE;
$params['node_name'] = "node $node_id configured as code";
- $params['node_content'] = mysql_real_escape_string("node $node_id added as code by user ".$_SESSION['user_name']);
+ $params['node_content'] = db_escape_string("node $node_id added as code by user ".$_SESSION['user_name']);
unset($_POST['code']);
nodes::addNode($params);
}
@@ -34,11 +34,11 @@ function configure_content() {
from nodes where node_id = '$node_id'";
$db->query($qtiamat);
- $qu = "update nodes set node_content = '".mysql_real_escape_string($node_content)."' where node_id = '$node_id'";
+ $qu = "update nodes set node_content = '".db_escape_string($node_content)."' where node_id = '$node_id'";
$result = $db->update($qu);
- $qu2 = "update node_content set node_content = '".mysql_real_escape_string($node_content)."' where node_id = '$node_id'";
+ $qu2 = "update node_content set node_content = '".db_escape_string($node_content)."' where node_id = '$node_id'";
$result = $db->update($qu2);
return true;
}
-?>
\ No newline at end of file
+?>