Skip to content
Snippets Groups Projects

Issue #3391461: Harden the use of unserialize in InlineBlock via allowed classes

Open Issue #3391461: Harden the use of unserialize in InlineBlock via allowed classes
2 unresolved threads
Open Lee Rowlands requested to merge issue/drupal-3391461:3391461-harden-the-use into 11.x
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
54 'status' => TRUE,
55 ])->save();
56 LayoutBuilderEntityViewDisplay::load('node.article.default')
57 ->enableLayoutBuilder()
58 ->setOverridable()
59 ->save();
60 }
61
62 /**
63 * Tests saving layout with inline block, which has serialized data.
64 *
65 * @covers ::getUnserializedBlock
66 */
67 public function testCreationBlockWithSerializedData(): void {
68 // Create inline block with serialized data not representing block entity.
69 $component = new SectionComponent('17901944-a4b6-11ee-a506-0242ac120002', 'content', [
  • 219 220 return $this->entityTypeManager->getViewBuilder($block->getEntityTypeId())->view($block, $this->configuration['view_mode']);
    220 221 }
    221 222
    223 /**
    224 * Processes serialized block correctly.
  • added 1 commit

    • b18693ad - Update file InlineBlockSerializationTest.php

    Compare with previous version

  • added 1 commit

    • 5f2578fe - Update InlineBlockSerializationTest.php add use statement for uuid generator

    Compare with previous version

  • added 1 commit

    • a121703b - Update InlineBlockSerializationTest.php PHPCBF

    Compare with previous version

  • andrew farquharson added 1730 commits

    added 1730 commits

    • a121703b...8afbe179 - 1725 commits from branch project:11.x
    • 37463ca3 - Use allowed classes
    • d40ab894 - Add separate function, add tests
    • f844862b - Update file InlineBlockSerializationTest.php
    • b765d0e4 - Update InlineBlockSerializationTest.php add use statement for uuid generator
    • 7d601220 - Update InlineBlockSerializationTest.php PHPCBF

    Compare with previous version

  • added 1 commit

    • f1e719c6 - Update InlineBlockSerializationTest.php replace assertEquals() with $this->fail()

    Compare with previous version

  • added 1 commit

    • 0f3c8111 - Update InlineBlockSerializationTest.php use $e->getMessage()

    Compare with previous version

  • added 1 commit

    • 8ce54f75 - Revert "Update InlineBlockSerializationTest.php PHPCBF"

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Liam Morland added 691 commits

    added 691 commits

    • 25888a9a...a0a7640c - 681 commits from branch project:11.x
    • 503f0ed8 - Use allowed classes
    • 8b18a5e1 - Add separate function, add tests
    • 381279ae - Update file InlineBlockSerializationTest.php
    • 5515ec91 - Update InlineBlockSerializationTest.php add use statement for uuid generator
    • eee5a6c0 - Update InlineBlockSerializationTest.php PHPCBF
    • aac4bc5f - Update InlineBlockSerializationTest.php replace assertEquals() with $this->fail()
    • 2cffc0cf - Update InlineBlockSerializationTest.php use $e->getMessage()
    • 7d1bd8c3 - Revert "Update InlineBlockSerializationTest.php PHPCBF"
    • 019203ca - add declare()
    • 68facff9 - Improve comments on InlineBlock::getUnserializedBlock()

    Compare with previous version

  • Please register or sign in to reply
    Loading