Skip to content

Commit

Permalink
HTML encoding in file control
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian1207 committed May 10, 2021
1 parent 04f938c commit d8eaa5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function render()
'title' => trans('fluentform::controls.file.delete')
]));
$content .= ' ';
$content .= '<a href="'.$value.'" target="_blank">'.basename($value).'</a>';
$content .= '<a href="'.$this->html()->encode($value).'" target="_blank">'.basename($this->html()->encode($value)).'</a>';
$content .= '</div>';
}

Expand Down

0 comments on commit d8eaa5f

Please sign in to comment.