Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-20555 fixed quoting

  • Loading branch information...
commit f063b39d327aa9706fca2066dfcf52a637c38d2a 1 parent 25eb600
authored October 13, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  mod/forum/post.php
4  mod/forum/post.php
@@ -506,9 +506,9 @@
506 506
             
507 507
             // MDL-11818
508 508
             if (($forum->type == 'single') && ($updatepost->parent == '0')){ // updating first post of single discussion type -> updating forum intro
509  
-                $forum->intro = $updatepost->message;
  509
+                $forum->intro = stripslashes($updatepost->message);
510 510
                 $forum->timemodified = time();
511  
-                if (!update_record("forum", $forum)) {
  511
+                if (!update_record("forum", addslashes_recursive($forum))) {
512 512
                     error(get_string("couldnotupdate", "forum"), $errordestination);
513 513
                 }
514 514
             }

0 notes on commit f063b39

Please sign in to comment.
Something went wrong with that request. Please try again.