Skip to content

Commit

Permalink
Psalm result fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgs committed Oct 31, 2023
1 parent 128c4a9 commit c41e8af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions InstanceSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ protected function setTaggedFields() {

$this->taggedFields[] = array(
'name' => $field,
'lookup' => $optionList,
'currentValue' => $currentValue
'lookup' => $this->escape($optionList),
'currentValue' => $this->escape($currentValue)
);
}
}

protected function insertJS() {
$parent_instance = ($_GET['parent_instance'] == null
|| empty($_GET['parent_instance'])) ? -1 : $_GET['parent_instance'];
$parent_instance = ($_GET['parent_instance'] == null
|| empty($_GET['parent_instance'])) ? -1 : $this->escape($_GET['parent_instance']);
?>
<script type='text/javascript'>
$(document).ready(function() {
Expand Down Expand Up @@ -330,7 +330,7 @@ protected function getEventInstances($param) {
foreach ($instancesHolder as $instances) {
foreach (array_keys($instances) as $instance) {
$custom_event_label = Piping::replaceVariablesInLabel($this->Proj->eventInfo[$eventId]['custom_event_label'], $this->record, $eventId, $instance, $recordData, false, null, false);
$selectItems[$instance] = (trim($custom_event_label)==='') ? $instance : $instance.': '.filter_tags($custom_event_label, false, true);
$selectItems[$instance] = (trim($custom_event_label)==='') ? $instance : $instance.': '.$this->escape($custom_event_label, false, true);
}
}

Expand Down

0 comments on commit c41e8af

Please # to comment.