Skip to content

Commit

Permalink
Merge pull request #53 from ziggycrane/security_updates
Browse files Browse the repository at this point in the history
#51: fixed svg path as string error
  • Loading branch information
roboc committed May 17, 2018
2 parents b596386 + aeec567 commit aa90349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Admin/Form/Fields/Renderer/IconPickerRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Arbory\Base\Admin\Form\Fields\SpriteIcon;
use Arbory\Base\Html\Elements\Element;
use Arbory\Base\Html\Html;
use Arbory\Base\Html\HtmlString;

class IconPickerRenderer extends SelectFieldRenderer
{
Expand Down Expand Up @@ -73,7 +74,7 @@ protected function getSvgIconElement( $id )
$width = (int) $attributes->width;
$height = (int) $attributes->height;

$icon = Html::span( Html::svg( $content )
$icon = Html::span( Html::svg( new HtmlString($content) )
->addAttributes( [
'width' => $width,
'height' => $height,
Expand Down

0 comments on commit aa90349

Please sign in to comment.