Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-20555 fixed quoting

  • Loading branch information...
commit f063b39d327aa9706fca2066dfcf52a637c38d2a 1 parent 25eb600
skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/post.php
View
4 mod/forum/post.php
@@ -506,9 +506,9 @@
// MDL-11818
if (($forum->type == 'single') && ($updatepost->parent == '0')){ // updating first post of single discussion type -> updating forum intro
- $forum->intro = $updatepost->message;
+ $forum->intro = stripslashes($updatepost->message);
$forum->timemodified = time();
- if (!update_record("forum", $forum)) {
+ if (!update_record("forum", addslashes_recursive($forum))) {
error(get_string("couldnotupdate", "forum"), $errordestination);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.