I'm not exactly sure what you mean, but the problem is with the name field being used as the system name. Here are bigger chunks of the code, from line 119:
Before my change
[code:1] // try to find the realnames settings of udde
if($this->config->realnames) {
$sql="SELECT name FROM #__users WHERE id=".(int) $udde_fromid;
$_CB_database->setQuery($sql);
$quereply=$_CB_database->loadResult();
if($quereply) {
$udde_sysm=$quereply;
}
}
if ($doObfuscate) {
$cm = $udde_msg;
$cm = $this->_uddeUnescapeCrypt($cm);
$cm = uddeIMencrypt($cm,$this->config->cryptkey,CRYPT_MODE_BASE64);
$sql="INSERT INTO #__uddeim (fromid, toid, message, datum, systemmessage, disablereply, cryptmode, crypthash) VALUES (".$udde_fromid.", ".$udde_toid.", '".$cm."', ".$udde_time.", '".$udde_sysm."', 0, 1,'".md5($this->config->cryptkey)."')";
} else {
$cm = $udde_msg;
$cm = $this->_uddeUnescape($cm);
$sql="INSERT INTO #__uddeim (fromid, toid, message, datum, systemmessage, disablereply) VALUES (".$udde_fromid.", ".$udde_toid.", '".$cm."', ".$udde_time.", '".$udde_sysm."', 0)";
}[/code:1]
After my change
[code:1] // try to find the realnames settings of udde
if($this->config->realnames) {
$sql="SELECT name FROM #__users WHERE id=".(int) $udde_fromid;
$_CB_database->setQuery($sql);
$quereply=$_CB_database->loadResult();
if($quereply) {
$udde_sysm=str_replace("'", "''", $quereply);
}
}
if ($doObfuscate) {
$cm = $udde_msg;
$cm = $this->_uddeUnescapeCrypt($cm);
$cm = uddeIMencrypt($cm,$this->config->cryptkey,CRYPT_MODE_BASE64);
$sql="INSERT INTO #__uddeim (fromid, toid, message, datum, systemmessage, disablereply, cryptmode, crypthash) VALUES (".$udde_fromid.", ".$udde_toid.", '".$cm."', ".$udde_time.", '".$udde_sysm."', 0, 1,'".md5($this->config->cryptkey)."')";
} else {
$cm = $udde_msg;
$cm = $this->_uddeUnescape($cm);
$sql="INSERT INTO #__uddeim (fromid, toid, message, datum, systemmessage, disablereply) VALUES (".$udde_fromid.", ".$udde_toid.", '".$cm."', ".$udde_time.", '".$udde_sysm."', 0)";
}[/code:1]
Maybe you can show what I need to change from this?
Many thanks.