Changes to Drupal Core to allow it to function with PHP 8.1#78
Changes to Drupal Core to allow it to function with PHP 8.1#78
Conversation
SA-CORE-2023-004 / https://www.drupal.org/sa-core-2023-004
- See d6lts#77 "Apache update causes Drupal URLs with spaces and other special characters to fail"
- (Removing warnings) - checking for existence of properties and array keys before attempting to use them (mysqli.inc, menu.inc, comment.module, node.module, user.module - form.inc, update.php - only variables may be passed by reference - install.php - order of arguments to implode must now be separator, array
|
We found that simply adding the B flag to the .htaccess rewrite solved some issues, but caused others for us. I can't entirely recall the specifics, but it had to do with filenames being double encoded by drupal_encode_path() I think. Apache recently changed this behavior for security reasons (CVE-2023-25690). (I think I have that roughly accurate, but I'm a little fuzzy on the specifics) We instead did a partial backport of the changes that went into D7 which entirely moves away from using the querystring at all. I do recall that that fix maintains $_GET['q'] for backward compatibility. I will file a pull request with our patch when I get a chance... |
|
BTW - This is the Drupal issue associated with the commit we backported: |
|
Here is a pull request for the fix we did instead of the B flag. As I mentioned its a backport of what D7 does. |
This reverts commit d55621c.
That's great. (I reverted the "B" flag change in the pull request - which otherwise still fixes some PHP8 compatibility problems). |
No description provided.