Skip to content

Commit

Permalink
Docblocks + changelog tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 14, 2023
1 parent e52fadb commit df5c29a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- HTML Purifier now allows `oembed` tags. ([ckeditor#59](https://github.com/craftcms/ckeditor/issues/59))
- Added `craft\htmlpurifier\VideoEmbedUrlDef`.
- Fixed a bug where entries that aren’t propagated to the primary site weren’t showing revision notes. ([#12641](https://github.com/craftcms/cms/issues/12641))
- Fixed a bug where HTML tags weren’t getting stripped from auto-generated Handle and URI Format setting values.
- Fixed a JavaScript error that could occur if an object with `null `values was passed to `Craft.compare()`.
Expand Down
15 changes: 14 additions & 1 deletion src/htmlpurifier/VideoEmbedUrlDef.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/

namespace craft\htmlpurifier;

class VideoEmbedUrlDef extends \HTMLPurifier_AttrDef_URI
use HTMLPurifier_AttrDef_URI;

/**
* Class VideoEmbedUrlDef
*
* @author Pixel & Tonic, Inc. <[email protected]>
* @since 3.7.66
*/
class VideoEmbedUrlDef extends HTMLPurifier_AttrDef_URI
{
public function validate($uri, $config, $context)
{
Expand Down

0 comments on commit df5c29a

Please sign in to comment.