Skip to content

Conversation

@amorsent
Copy link
Contributor

@amorsent amorsent commented May 7, 2023

Backport of #284899: Drupal url problem with clean urls.
https://www.drupal.org/project/drupal/issues/284899

Also fixes URL bugs introduced by Apache Update for CVE-2023-25690

Original commit: https://git.drupalcode.org/project/drupal/-/commit/1df3cfffefefc93ed2d29041d148938d08bb9d4e

Notes:
Test changes from original commit is excluded because the equivalents don't exist in D6.

drupal_environment_initialize() does not exist in D6. I have added the code in _drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION)

The original commit only syncs $_GET['q']. I am also setting $_REQUEST['q'] because some contrib modules use that.

Some functions have different names in D6.
drupal_encode_path() is drupal_urlencode() in D6
Drupal.encodePath() is Drupal.encodeURIComponent() in D6

The original commit changes autocomplete.js, but this change was later reversed for SA-CORE-2020-007 https://git.drupalcode.org/project/drupal/-/commit/cd3721550d988240ef6e682bd1cae2939c6e9e5a#5b6d51049ae7a66f45f48add03d6e3144d037ada

@JPustkuchen
Copy link

@amorsent have you been using this for a longer period of time? How mature would you say is this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants