Skip to content
Snippets Groups Projects
Commit 58b66b21 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

remove HTML before calculating changes in wiki, re #2477

Merge request studip/studip!1688
parent beea41ff
No related branches found
No related tags found
No related merge requests found
......@@ -1660,14 +1660,14 @@ function showDiffs($keyword, $versions_since)
}
$version = array_shift($versions);
$last = $version['body'];
$last = Studip\Markup::removeHtml($version['body']);
$lastversion = $version['version'];
$zusatz = getZusatz($version);
$content = '';
foreach ($versions as $version) {
$content .= '<tr>';
$current = $version['body'];
$current = Studip\Markup::removeHtml($version['body']);
$currentversion = $version['version'];
$diffarray = '<b><font size=-1>'. _("Änderungen zu") . " </font> $zusatz</b><p>";
......@@ -1720,6 +1720,7 @@ function do_diff($strlines1,$strlines2)
function toDiffLineArray($lines, $who) {
$dla = [];
$lines = Studip\Markup::removeHtml($lines);
$lines = explode("\n",preg_replace("/\r/",'',$lines));
foreach ($lines as $l) {
$dla[] = new DiffLine($l, $who);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment