<li>Security: fixed several possible SQL injections in links edition</li>
<li>Fixed major course copy drawback by which exercise contents were keeping links to the old course (thanks to Ludovic Gasc and SANTEXCEL - BT#658)</li>
<li>Some PHP short tags fixed. Reported by Sicabol, see <ahref="http://www.chamilo.org/node/114"target="_blank">http://www.chamilo.org/node/114</a> (Feature #347)</li>
<li>Student publications deleted when an user is unsubscribed of a course. Reported and fixed by André Boivin</li>
@ -65,6 +66,7 @@
<li>Learning Path (Courses): PHP sessions of a LP are destroyed when visiting the main course page.</li>
<li>Assignment tool: Work.php deletes all homeworks bugs fixed. Reported and fixed by carlosbrolotobar <ahref="http://www.chamilo.org/node/143"target="_blank">http://www.chamilo.org/node/143</a></li>
<li>Core API: Support has been implemented for json_encode() function for PHP version <5.2.Thecorrespondentbug-report"Hideandshownotworking"andtestinghavebeendonebyHubertBorderiou<ahref="http://support.chamilo.org/issues/761"target="_blank">http://support.chamilo.org/issues/761</a></li>
<li>Fixed target problems in links tool link edition</li>
AND mailcue.thread_id='".Database::escape_string($post_info['thread_id'])."'
AND mailcue.thread_id='$thread_id'
AND users.user_id=posts.poster_id
AND users.active=1
AND userscourses.user_id = users.user_id
AND userscourses.course_code = '$course'
GROUP BY users.email";
$result=Database::query($sql);
while ($row=Database::fetch_array($result)) {
@ -2888,15 +2897,22 @@ function handle_mail_cue($content, $id) {
}
// deleting the relevant entries from the mailcue
$sql_delete_mailcue="DELETE FROM $table_mailcue WHERE post_id='".Database::escape_string($id)."' AND thread_id='".Database::escape_string($post_info['thread_id'])."'";
$sql_delete_mailcue="DELETE FROM $table_mailcue
WHERE post_id='".Database::escape_string($id)."'
AND thread_id='".Database::escape_string($post_info['thread_id'])."'";
//$result=Database::query($sql_delete_mailcue);
} elseif ($content=='thread') {
// sending the mail to all the users that wanted to be informed for replies on this thread.
$result = Database::query("SELECT id FROM $tbl_link WHERE ".$urleq.' AND '.$cateq);
if (Database::num_rows($result) >= 1 && ($row = Database::fetch_array($result))) {
Database::query("UPDATE $tbl_link set title='".addslashes($title)."', description='".addslashes($description)."' WHERE id='".addslashes($id = $row['id'])."'");
Database::query("UPDATE $tbl_link set title='".Database::escape_string($title)."', description='".Database::escape_string($description)."' WHERE id='".Database::escape_string($row['id'])."'");
$lang_link = get_lang('update_link');
$ipu = 'LinkUpdated';
$rv = 1; // 1 = upd
} else {
// Add new link
$result = Database::query("SELECT MAX(display_order) FROM $tbl_link WHERE category_id='".addslashes($cat)."'");
$result = Database::query("SELECT MAX(display_order) FROM $tbl_link WHERE category_id='".intval($cat)."'");