Skip to content

Commit

Permalink
Fixed "Upgrading to 1.2.0+ disables admin UI ([#32](#32))" bug caused…
Browse files Browse the repository at this point in the history
… by LibXML rendering self closing `iframe`.
  • Loading branch information
reganlawton committed Feb 5, 2020
1 parent c3fe79d commit d8ca2c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# oEmbed Changelog

## 1.2.3 - 2020-02-05

### Fixed
- Fixed "Upgrading to 1.2.0+ disables admin UI ([#32](https://github.com/wrav/oembed/issues/32))" bug caused by LibXML rendering self closing `iframe`.

## 1.2.2 - 2020-01-30

### Updated
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wrav/oembed",
"description": "A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.",
"type": "craft-plugin",
"version": "1.2.2",
"version": "1.2.3",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/services/OembedService.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function __call(string $name , array $arguments )
}

$iframe->setAttribute('src', $src);
$media->code = $dom->saveXML($iframe);
$media->code = $dom->saveXML($iframe, LIBXML_NOEMPTYTAG);
} catch (\Exception $exception) {
Craft::info($exception->getMessage(), 'oembed');
}
Expand Down

0 comments on commit d8ca2c8

Please sign in to comment.