Permalink
Browse files

fix for MDL-7696, adding addslash for bulk messaging

  • Loading branch information...
1 parent 3c98b96 commit a75dde8a5c7870cb67bfb7b74796b2fd0e670fa5 toyomoyo committed Dec 7, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/messageselect.php
View
@@ -86,7 +86,7 @@
$good = 1;
$teachers = array();
foreach ($SESSION->emailto[$id] as $user) {
- $good = $good && message_post_message($USER,$user,$messagebody,$format,'direct');
+ $good = $good && message_post_message($USER,$user,addslashes($messagebody),$format,'direct');
if ($user->teacher) {
$teachers[] = $user->id;
}

0 comments on commit a75dde8

Please sign in to comment.