InfoParserDynamic::parse() looks for strings in a file path without normalising

Created on 4 October 2023, 9 months ago

Problem/Motivation

πŸ› "core_version_requirement key must be present" on core modules on Windows Needs review revealed that the logic in \Drupal\Core\Extension\InfoParserDynamic::parse() is fragile when Windows is involved.

Steps to reproduce

Proposed resolution

Either

  • normalise the file paths
  • provide an OS safe pathStartsWith method()
  • don't accept absolute file paths

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated less than a minute ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Comments & Activities

Production build 0.69.0 2024