diff --git a/InstanceSelect.php b/InstanceSelect.php index f6dc2a4..9fdbe2d 100644 --- a/InstanceSelect.php +++ b/InstanceSelect.php @@ -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']); ?>