Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295826

symfony/http-foundation commit 32310ff breaks PathValidator

$
0
0

Problem/Motivation

Passing a url with a whitespace at the end used to work with PathValidator, however this commit broke it.

As a consequence, sites are blowing up left and right. Browsers have no problems with such URLs, only Symfony does. Maybe there's an RFC somewhere which prescribes this ? but who cares about that.

Steps to reproduce

\Drupal::pathValidator()->getUrlIfValidWithoutAccessCheck('http://example.com/ ') note the extra space.

Proposed resolution

Patch PathValidator to catch the trash Symfony throws.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 295826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>