Closed (fixed)
Project:
Legal
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2022 at 07:22 UTC
Updated:
2 Jun 2024 at 12:49 UTC
Jump to comment: Most recent
We should avoid using the PHP global $_REQUEST and instead use Drupal services that provide the same info.
n/a
Use Drupal services instead.
n/a
n/a
n/a
n/a
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
alecsmrekar commentedComment #4
anybodyYes, I think this is against Drupal best practices. We should rate this as bug. Thanks!
Comment #5
anybodyNote: The first one will hopefully be entirely removed in #3414370: Reset notice is showing up twice (from core and legal module) and don't disappear after password change
Comment #7
robert castelo commentedComment #9
robert castelo commentedI wasn't able to change the second $_REQUEST to \Drupal::destination()->get() as it gives different results and breaks redirects.
\Drupal::destination()->get() will always return a default redirect path for a form, $_REQUEST['destination'] returns an empty string if it's not set.