Problem/Motivation
We want to remove include files (including path.inc) and move from procedural to OO code.
Proposed resolution
Move drupal_valid_path() to a PathValidator service.
Remaining tasks
RTBC
User interface changes
None
API changes
drupal_valid_path() becomes deprecated
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff.txt | 1.15 KB | kim.pepper |
| #3 | 2302331-valid-path-3.patch | 6.35 KB | kim.pepper |
| #1 | 2302331-valid-path-1.patch | 6.28 KB | kim.pepper |
Comments
Comment #1
kim.pepperCreated a new PathValidator service and moved over the logic of drupal_valid_path().
Comment #2
ParisLiakos commentedLooks good. All this needs is a change notice and fixing those nitpicks :) :
newline in between
:)
Too many newlines here
Comment #3
kim.pepperFixes for #2.
Comment #4
kim.pepperAdded draft change record here: https://www.drupal.org/node/2302541
Comment #5
ParisLiakos commentedthanks
dont really like the "default" in here, but OK
change notice looks good
Comment #6
chx commentedI needed to review this because path validation is security related. And this of course is good (or not worse than HEAD) and should could be committed as it.
I moved my concerns to #2302563: Access check Url objects
Comment #7
alexpottCommitted 291b998 and pushed to 8.x. Thanks!
Fixed on commit.