bugphpGroupWare - Bugs: bug #7285, messenger - bad function

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7285: messenger - bad function

Submitted by:  Michal Krivka <krivka>
Submitted on:  Fri 16 Jan 2004 08:48:13 AM UTC  
 
Item Group: 0.9.16RC2Category: None
Severity: 3 - NormalPriority: 7 - High
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: TGZOperating System: GNU/Linux - RedHat/Fedora
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Tue 20 Jan 2004 04:37:08 AM UTC, comment #1:

This has been fixed in CVS and should be available in the next
release.

Joseph Engo <jengo>
Project Administrator
Fri 16 Jan 2004 08:48:13 AM UTC, original submission:

missing ' =>corrected version of function:

File class.somessenger.inc.php

function send_message($message, $global_message = False)
{
if ($global_message)
{
$this->owner = -1;
}

if (! ereg('^[0-9]+$',$message['to']))
{
$message['to'] = intval($GLOBALS['phpgw']->accounts->name2id($message['to']));
}

$this->db->query('INSERT INTO phpgw_messenger_messages'
. ' (message_owner, message_from, message_status, '
. 'message_date, message_subject, message_content) VALUES('
. "'".$message['to'] . "','" . $this->owner . "','N','" . time() . "','"
. $this->db->db_addslashes($message['subject']) . "',"
. "'" . $this->db->db_addslashes($message['content'])
. "')",__LINE__,__FILE__);
}

Michal Krivka <krivka>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 20 Jan 2004 04:37:08 AM UTCjengoStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1