Skip to content

Commit

Permalink
MDL-29506 forum: Fix use of ampersand in backup parent links
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi963 authored and andrewnicols committed Feb 15, 2016
1 parent 288f92e commit a027928
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ static public function encode_content_links($content) {
$content= preg_replace($search, '$@FORUMVIEWBYF*$2@$', $content);

// Link to forum discussion with parent syntax
$search="/(".$base."\/mod\/forum\/discuss.php\?d\=)([0-9]+)\&parent\=([0-9]+)/";
$search = "/(".$base."\/mod\/forum\/discuss.php\?d\=)([0-9]+)(?:\&|\&)parent\=([0-9]+)/";
$content= preg_replace($search, '$@FORUMDISCUSSIONVIEWPARENT*$2*$3@$', $content);

// Link to forum discussion with relative syntax
Expand Down

0 comments on commit a027928

Please sign in to comment.