Skip to content
Snippets Groups Projects
Commit b0bf25df authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

correctly encode output, fixes #1619

Closes #1619

Merge request studip/studip!1047
parent cf9ef0c6
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,7 @@ class LogEvent extends SimpleORMap implements PrivacyObject
return $this->$field;
}
return '<em>' . $study_area->getPath(' &gt ') . '</em>';
return '<em>' . htmlReady($study_area->getPath(' > ')) . '</em>';
}
/**
......@@ -264,8 +264,7 @@ class LogEvent extends SimpleORMap implements PrivacyObject
$plugin_manager = PluginManager::getInstance();
$plugin_info = $plugin_manager->getPluginInfoById($this->$field);
return $plugin_info ? '<em>'
. $plugin_info['name'] . '</em>' : $this->$field;
return $plugin_info ? '<em>' . htmlReady($plugin_info['name']) . '</em>' : $this->$field;
}
/**
......@@ -279,10 +278,10 @@ class LogEvent extends SimpleORMap implements PrivacyObject
$all_semester = Semester::findAllVisible(false);
foreach ($all_semester as $val) {
if ($val['beginn'] == $this->$field) {
return '<em>' . $val['name'] . '</em>';
return '<em>' . htmlReady($val['name']) . '</em>';
}
}
return $this->$field;
return htmlReady($this->$field);
}
/**
......
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