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

correctly encode output, fixes #1619

Closes #1619

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