BrowserTestBase tries to summon Cthulhu

Created on 16 March 2025, 17 days ago

Problem/Motivation

if (preg_match('@<script type="application/json" data-drupal-selector="drupal-settings-json">([^<]*)</script>@', $html, $matches)) {

Steps to reproduce

  1. Open BrowserTestBase::getDrupalSettings
  2. Run screaming

Proposed resolution

To quote the Canonical Answer on the topic: Have you tried using an XML parser instead?

Remaining tasks

Use a HTML parser instead.

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component

base system

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada Charlie ChX Negyesi ๐ŸCanada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024