MDL-48309 mod_forum: Do not escape ampersands in plain text email
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 4 Dec 2014 05:21:50 +0000 (13:21 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 4 Dec 2014 12:14:32 +0000 (12:14 +0000)
mod/forum/lib.php

index 481fc71..e81994a 100644 (file)
@@ -1228,7 +1228,7 @@ function forum_make_mail_text($course, $cm, $forum, $discussion, $post, $userfro
             // Always offer the unsubscribe from discussion link.
             $posttext .= "\n---------------------------------------------------------------------\n";
             $posttext .= get_string("unsubscribediscussion", "forum");
-            $posttext .= ": $CFG->wwwroot/mod/forum/subscribe.php?id=$forum->id&amp;d=$discussion->id\n";
+            $posttext .= ": $CFG->wwwroot/mod/forum/subscribe.php?id=$forum->id&d=$discussion->id\n";
         }
     }